Skip to content

Commit

Permalink
fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
eks-distro-pr-bot committed May 8, 2024
1 parent 8ac7b98 commit 4e30a79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/cluster_types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2983,7 +2983,7 @@ func TestCluster_HasFailure(t *testing.T) {
},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
t.Run(tt.name, func(_ *testing.T) {
g.Expect(tt.cluster.HasFailure()).To(Equal(tt.want))
})
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/snowdatacenterconfig_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (r *SnowDatacenterConfig) ValidateCreate() (admission.Warnings, error) {
}

// ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
func (r *SnowDatacenterConfig) ValidateUpdate(old runtime.Object) (admission.Warnings, error) {
func (r *SnowDatacenterConfig) ValidateUpdate(_ runtime.Object) (admission.Warnings, error) {
snowdatacenterconfiglog.Info("validate update", "name", r.Name)

return nil, r.Validate()
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/v1alpha1/snowmachineconfig_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (r *SnowMachineConfig) ValidateCreate() (admission.Warnings, error) {
}

// ValidateUpdate implements webhook.Validator so a webhook will be registered for the type.
func (r *SnowMachineConfig) ValidateUpdate(old runtime.Object) (admission.Warnings, error) {
func (r *SnowMachineConfig) ValidateUpdate(_ runtime.Object) (admission.Warnings, error) {
snowmachineconfiglog.Info("validate update", "name", r.Name)

if err := r.ValidateHasSSHKeyName(); err != nil {
Expand Down

0 comments on commit 4e30a79

Please sign in to comment.