From 7210bfb53bf155a8e7fa9c4bf436b2f0280bb142 Mon Sep 17 00:00:00 2001 From: Michael Fornaro <20387402+xUnholy@users.noreply.github.com> Date: Mon, 13 Nov 2023 17:41:28 +1100 Subject: [PATCH] fix: lint error with checking cmd.Usage() Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com> --- advisor/cmd/gen.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advisor/cmd/gen.go b/advisor/cmd/gen.go index 8ba85f3b5..e93145b08 100644 --- a/advisor/cmd/gen.go +++ b/advisor/cmd/gen.go @@ -48,7 +48,7 @@ var networkPolicyCmd = &cobra.Command{ } else { // Validate that a pod name is provided if len(args) != 1 { - cmd.Usage() + _ = cmd.Usage() return } options.Mode = k8s.SinglePod