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
|
@ -34,7 +34,7 @@ func EnsureRemoveAll(dir string) error {
|
||||||
for {
|
for {
|
||||||
err := os.RemoveAll(dir)
|
err := os.RemoveAll(dir)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
return err
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
pe, ok := err.(*os.PathError)
|
pe, ok := err.(*os.PathError)
|
||||||
|
|
Loading…
Reference in New Issue