Merge pull request #938 from CallanTaylor/close-unclosed-file

Close file
main
lynn [they] 5 years ago committed by GitHub
commit 4032749ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -137,6 +137,7 @@ func GfmrunActionFunc(c *cli.Context) error {
if err != nil {
return err
}
defer file.Close()
var counter int
scanner := bufio.NewScanner(file)

Loading…
Cancel
Save