Browse Source

pkg/mount: SA4011: ineffective break statement (staticcheck)

```
pkg/mount/mountinfo_linux.go:93:5: 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>
Sebastiaan van Stijn 5 years ago
parent
commit
4840fd8953
1 changed files with 0 additions and 1 deletions
  1. 0 1
      pkg/mount/mountinfo_linux.go

+ 0 - 1
pkg/mount/mountinfo_linux.go

@@ -90,7 +90,6 @@ func parseInfoFile(r io.Reader, filter FilterFunc) ([]*Info, error) {
 				   mount propagation flags in fields[6]. The correct
 				   mount propagation flags in fields[6]. The correct
 				   behavior is to ignore any unknown optional fields.
 				   behavior is to ignore any unknown optional fields.
 				*/
 				*/
-				break
 			}
 			}
 		}
 		}
 		if i == numFields {
 		if i == numFields {