Clean up some lint warnings
I ran golangci-lint and it pointed out a few things to clean up.
This commit is contained in:
1 parent
28e482af14
commit
34dc4dabce
7 files changed
+9
-9
No files matched your search
+1
-1
@@ -59,7 +59,7 @@ func (spec *selectorSpec) getRuleSpec(src bool) ([]string, string) {
|
||||
}
|
||||
rule := []string{"-m", "set", "--match-set", string(spec.ipsetName), dir}
|
||||
|
||||
comment := "anywhere"
|
||||
var comment string
|
||||
if spec.nsName != "" {
|
||||
comment = fmt.Sprintf("pods: namespace: %s, selector: %s", spec.nsName, spec.key)
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user