1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #33860 from lixiaobing1/masterFclose

add f.Close()  after dockerignore.ReadAll(f) before return err
This commit is contained in:
Brian Goff 2017-06-29 10:19:45 -04:00 committed by GitHub
commit e066edcfcf

View file

@ -131,6 +131,7 @@ func removeDockerfile(c modifiableContext, filesToRemove ...string) error {
}
excludes, err := dockerignore.ReadAll(f)
if err != nil {
f.Close()
return err
}
f.Close()