Skip to content

Commit 8f842ce

Browse files
committed
address linter
1 parent 212628e commit 8f842ce

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cns/fakes/iptablesfake.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ type IPTablesLegacyMock struct {
2020
deleteCallCount int
2121
}
2222

23-
func (c *IPTablesLegacyMock) Delete(table, chain string, rulespec ...string) error {
23+
func (c *IPTablesLegacyMock) Delete(_, _ string, _ ...string) error {
2424
c.deleteCallCount++
2525
return nil
2626
}

cns/restserver/internalapi_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ type iptablesLegacy struct{}
3131

3232
func (c *iptablesLegacy) Delete(table, chain string, rulespec ...string) error {
3333
cmd := append([]string{"-t", table, "-D", chain}, rulespec...)
34-
return exec.Command("iptables-legacy", cmd...).Run()
34+
return errors.Wrap(exec.Command("iptables-legacy", cmd...).Run(), "iptables legacy failed delete")
3535
}
3636

3737
// nolint

0 commit comments

Comments
 (0)