Skip to content

Commit

Permalink
add f.Close() after dockerignore.ReadAll(f) before return err
Browse files Browse the repository at this point in the history
Signed-off-by: lixiaobing10051267 <[email protected]>
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
lixiaobing1 authored and thaJeztah committed Jun 29, 2017
1 parent 950d472 commit 3072fce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions builder/remotecontext/detect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 3072fce

Please sign in to comment.