Merge pull request #916 from Daanikus/close-file

Add missing call to Close()
This commit is contained in:
Ajitem Sahasrabuddhe 2019-11-09 12:17:18 +05:30 committed by GitHub
commit 05874240ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,6 +146,11 @@ func GfmrunActionFunc(c *cli.Context) error {
}
}
err = file.Close()
if err != nil {
return err
}
err = scanner.Err()
if err != nil {
return err