diff --git a/cli/compose/loader/loader.go b/cli/compose/loader/loader.go index 564eb70a98..6cd2d2031d 100644 --- a/cli/compose/loader/loader.go +++ b/cli/compose/loader/loader.go @@ -269,7 +269,7 @@ type ForbiddenPropertiesError struct { Properties map[string]string } -func (e *ForbiddenPropertiesError) Error() string { +func (*ForbiddenPropertiesError) Error() string { return "Configuration contains forbidden properties" } diff --git a/cli/compose/schema/schema.go b/cli/compose/schema/schema.go index 9c68166e37..b636ea5bbf 100644 --- a/cli/compose/schema/schema.go +++ b/cli/compose/schema/schema.go @@ -22,7 +22,7 @@ const ( type portsFormatChecker struct{} -func (checker portsFormatChecker) IsFormat(input any) bool { +func (portsFormatChecker) IsFormat(input any) bool { var portSpec string switch p := input.(type) { @@ -38,7 +38,7 @@ func (checker portsFormatChecker) IsFormat(input any) bool { type durationFormatChecker struct{} -func (checker durationFormatChecker) IsFormat(input any) bool { +func (durationFormatChecker) IsFormat(input any) bool { value, ok := input.(string) if !ok { return false