Skip to content

Commit

Permalink
underscore unused receiver arg
Browse files Browse the repository at this point in the history
  • Loading branch information
c-pius committed Jan 20, 2025
1 parent 3f5df93 commit 09f00d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/maintenancewindows/maintenance_window.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func MaintenancePolicyFileExists(policyFilePath string) bool {
}

// IsRequired determines if a maintenance window is required to update the given module.
func (mw MaintenanceWindow) IsRequired(moduleTemplate *v1beta2.ModuleTemplate, kyma *v1beta2.Kyma) bool {
func (_ MaintenanceWindow) IsRequired(moduleTemplate *v1beta2.ModuleTemplate, kyma *v1beta2.Kyma) bool {

Check failure on line 66 in internal/maintenancewindows/maintenance_window.go

View workflow job for this annotation

GitHub Actions / lint

ST1006: receiver name should not be an underscore, omit the name if it is unused (stylecheck)
if !moduleTemplate.Spec.RequiresDowntime {
return false
}
Expand Down

0 comments on commit 09f00d1

Please sign in to comment.