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> Upstream-commit: cda9d5f7f0c4a155d1ae9e06c203fcb89600ff2a Component: engine
This commit is contained in:
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user