Explorar el Código

Merge pull request #37551 from Quasilyte/quasilyte/fixErrorReturn

pkg/system: return nil explicitly
Sebastiaan van Stijn hace 7 años
padre
commit
0211de67ab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      pkg/system/rm.go

+ 1 - 1
pkg/system/rm.go

@@ -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)