Merge pull request #33033 from YuPengZTE/devReadAll

check err
This commit is contained in:
Akihiro Suda 2017-05-05 22:33:23 +09:00 committed by GitHub
commit b61ffbfb52

View file

@ -125,6 +125,9 @@ func removeDockerfile(c modifiableContext, filesToRemove ...string) error {
return err return err
} }
excludes, err := dockerignore.ReadAll(f) excludes, err := dockerignore.ReadAll(f)
if err != nil {
return err
}
f.Close() f.Close()
filesToRemove = append([]string{".dockerignore"}, filesToRemove...) filesToRemove = append([]string{".dockerignore"}, filesToRemove...)
for _, fileToRemove := range filesToRemove { for _, fileToRemove := range filesToRemove {