mirror of
https://github.com/netbirdio/netbird.git
synced 2026-04-16 07:16:38 +00:00
Fix Codacity notes
This commit is contained in:
@@ -946,12 +946,11 @@ func TestEngine_firewallManager(t *testing.T) {
|
||||
if runtime.GOOS != "linux" {
|
||||
t.Skipf("firewall manager not supported in the: %s", runtime.GOOS)
|
||||
return
|
||||
} else {
|
||||
_, err := exec.LookPath("iptables")
|
||||
if err != nil {
|
||||
t.Skipf("iptables not found: %v", err)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
if _, err := exec.LookPath("iptables"); err != nil {
|
||||
t.Skipf("iptables not found: %v", err)
|
||||
return
|
||||
}
|
||||
|
||||
ctx, cancel := context.WithTimeout(CtxInitState(context.Background()), 10*time.Second)
|
||||
|
||||
Reference in New Issue
Block a user