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:
commit
e066edcfcf
1 changed files with 1 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue