mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
pkg/system: return nil explicitly
Makes code less confusing. Otherwise it looks like an error (typo of "==" instead "!="). Signed-off-by: Iskander Sharipov <quasilyte@gmail.com>
This commit is contained in:
parent
b785a4dcb6
commit
cda9d5f7f0
1 changed files with 1 additions and 1 deletions
|
@ -34,7 +34,7 @@ func EnsureRemoveAll(dir string) error {
|
|||
for {
|
||||
err := os.RemoveAll(dir)
|
||||
if err == nil {
|
||||
return err
|
||||
return nil
|
||||
}
|
||||
|
||||
pe, ok := err.(*os.PathError)
|
||||
|
|
Loading…
Reference in a new issue