internal/sandbox: go fix -slicescontains ./...
diff --git a/internal/sandbox/sandbox.go b/internal/sandbox/sandbox.go
index c9704a2..6acd362 100644
--- a/internal/sandbox/sandbox.go
+++ b/internal/sandbox/sandbox.go
@@ -15,6 +15,7 @@
"os"
"os/exec"
"path/filepath"
+ "slices"
"time"
)
@@ -185,10 +186,5 @@
}
func isBindMount(m mount) bool {
- for _, opt := range m.Options {
- if opt == "bind" {
- return true
- }
- }
- return false
+ return slices.Contains(m.Options, "bind")
}
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +2 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
internal/sandbox: go fix -slicescontains ./...
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |