Skip to content

Commit

Permalink
[from now] 2024/08/18 21:58:10
Browse files Browse the repository at this point in the history
diff --git a/cmd/root.go b/cmd/root.go
index 8d82c65..0372122 100644
--- a/cmd/root.go
+++ b/cmd/root.go
@@ -15,6 +15,8 @@ var RootCmd = &cobra.Command{
 }

 func init() {
+	a := 1
+	b := a + 1
 	cobra.OnInitialize()
 	RootCmd.PersistentFlags().StringP("config", "", "", "Kubernetes config file path (If you don't set it, use environment variables `KUBECONFIG`)")
 	RootCmd.PersistentFlags().BoolP("verbose", "v", false, "Enable verbose mode")
  • Loading branch information
h3poteto committed Aug 18, 2024
1 parent 3ee5ffd commit f0ac64d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var RootCmd = &cobra.Command{
}

func init() {
a := 1
b := a + 1

Check failure on line 19 in cmd/root.go

View workflow job for this annotation

GitHub Actions / e2e-test

b declared and not used

Check failure on line 19 in cmd/root.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/root.go#L19

b declared and not used (typecheck)
Raw output
cmd/root.go:19:2: b declared and not used (typecheck)
package cmd

Check failure on line 19 in cmd/root.go

View workflow job for this annotation

GitHub Actions / golangci

[golangci] cmd/root.go#L19

b declared and not used) (typecheck)
Raw output
cmd/root.go:19:2: b declared and not used) (typecheck)
	"github.com/h3poteto/kube-job/cmd"
	^
cobra.OnInitialize()
RootCmd.PersistentFlags().StringP("config", "", "", "Kubernetes config file path (If you don't set it, use environment variables `KUBECONFIG`)")
RootCmd.PersistentFlags().BoolP("verbose", "v", false, "Enable verbose mode")
Expand Down

0 comments on commit f0ac64d

Please sign in to comment.