Browse code

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>

Iskander Sharipov authored on 2018/07/29 07:31:08
Showing 1 changed files
... ...
@@ -34,7 +34,7 @@ func EnsureRemoveAll(dir string) error {
34 34
 	for {
35 35
 		err := os.RemoveAll(dir)
36 36
 		if err == nil {
37
-			return err
37
+			return nil
38 38
 		}
39 39
 
40 40
 		pe, ok := err.(*os.PathError)