Skip to content

Commit

Permalink
fix failed checks
Browse files Browse the repository at this point in the history
Signed-off-by: yangxg <[email protected]>
  • Loading branch information
yangxggo committed Oct 11, 2024
1 parent 513fefd commit d76e2a7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/apply/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ type ClusterName struct {
ClusterName string
}

func (c *ClusterName) RegisterFlags(fs *pflag.FlagSet, verb, action string) {
func (c *ClusterName) RegisterFlags(fs *pflag.FlagSet, _, action string) {
fs.StringVar(&c.ClusterName, "cluster", "default", fmt.Sprintf("name of cluster to applied %s action", action))
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/apply/reset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func TestNewApplierFromResetArgs(t *testing.T) {
SSH: &SSH{},
},
},
wantErr: false,
wantErr: true, // clusterfile must exist
},
}
for _, tt := range tests {
Expand Down

0 comments on commit d76e2a7

Please sign in to comment.