1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

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

View file

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