aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/csource/options.go
diff options
context:
space:
mode:
authorTaras Madan <tarasmadan@google.com>2025-07-15 16:50:26 +0200
committerTaras Madan <tarasmadan@google.com>2025-07-17 08:31:25 +0000
commit94243f0c885f79147a0c19cb2e11dae119683f81 (patch)
tree8cd43f579959083313fbcc97e90c9a1b67cb9087 /pkg/csource/options.go
parentabd11cfd08430ec5f9d2c6dbd0e0f798816922d1 (diff)
all: manual linter fixes
1. recover the removed comment 2. unnecessary leading newline 3. unnecessary brackets 4. restore dropped "..." 5. use bytes.Equal instead of conversion to string
Diffstat (limited to 'pkg/csource/options.go')
-rw-r--r--pkg/csource/options.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/csource/options.go b/pkg/csource/options.go
index 02e39980a..74d4a587a 100644
--- a/pkg/csource/options.go
+++ b/pkg/csource/options.go
@@ -125,11 +125,11 @@ func (opts Options) checkLinuxOnly(OS string) error {
if OS == targets.Linux {
return nil
}
- if opts.NetInjection && (OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD) {
+ if opts.NetInjection && OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD {
return fmt.Errorf("option NetInjection is not supported on %v", OS)
}
if opts.Sandbox == sandboxNamespace ||
- (opts.Sandbox == sandboxSetuid && (OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD)) ||
+ (opts.Sandbox == sandboxSetuid && OS != targets.OpenBSD && OS != targets.FreeBSD && OS != targets.NetBSD) ||
opts.Sandbox == sandboxAndroid {
return fmt.Errorf("option Sandbox=%v is not supported on %v", opts.Sandbox, OS)
}