aufs: SA4011: did you mean to break out of the outer loop? (staticcheck)

As caught by staticcheck (after disabling the default exclusion rules);

Based on the comment, this break was indeed meant to break the
loop and return the error.

```
daemon/graphdriver/aufs/mount.go:54:4: SA4011: ineffective break statement. Did you mean to break out of the outer loop? (staticcheck)
			break
			^
```

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-10-14 00:57:38 +02:00
parent 6d9c219c54
commit af3bbcc00c
No known key found for this signature in database
GPG Key ID: 76698F39D527CE8C
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func Unmount(target string) error {
continue // try again
default:
// any other error is fatal
break
return err
}
}