mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-22 14:20:19 +00:00
ci: fix nolintlint warnings
warnings from golangci-lint: e2e/pod.go:207:122: directive `//nolint:unparam,lll // cn can be used with different inputs later` is unused for linter unparam (nolintlint) func execCommandInContainer(f *framework.Framework, c, ns, cn string, opt *metav1.ListOptions) (string, string, error) { //nolint:unparam,lll // cn can be used with different inputs later e2e/pod.go:307:70: directive `//nolint:unparam // skipNotFound can be used with different inputs later` is unused for linter unparam (nolintlint) func deletePodWithLabel(label, ns string, skipNotFound bool) error { //nolint:unparam // skipNotFound can be used with different inputs later Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
This commit is contained in:
parent
fd3bf1750b
commit
10fc639d68
@ -216,7 +216,6 @@ func execCommandInPod(f *framework.Framework, c, ns string, opt *metav1.ListOpti
|
||||
return stdOut, stdErr, err
|
||||
}
|
||||
|
||||
//nolint:unparam // cn can be used with different inputs later
|
||||
func execCommandInContainer(
|
||||
f *framework.Framework, c, ns, cn string, opt *metav1.ListOptions) (string, string, error) {
|
||||
podOpt, err := getCommandInPodOpts(f, c, ns, cn, opt)
|
||||
@ -349,7 +348,6 @@ func deletePod(name, ns string, c kubernetes.Interface, t int) error {
|
||||
})
|
||||
}
|
||||
|
||||
//nolint:unparam // skipNotFound arg can be used with different inputs later
|
||||
func deletePodWithLabel(label, ns string, skipNotFound bool) error {
|
||||
_, err := framework.RunKubectl(ns, "delete", "po", "-l", label, fmt.Sprintf("--ignore-not-found=%t", skipNotFound))
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user