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

Close file
This commit is contained in:
lynn [they] 2019-11-19 22:32:19 -08:00 committed by GitHub
commit 4032749ccd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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