Skip to content

Commit 4d600b6

Browse files
committed
fix: lint
1 parent fe0368f commit 4d600b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/gateway_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -934,7 +934,7 @@ func managedGatewayHostnameFromStatus(
934934
if ptr.Deref(addr.Type, "") != gatewayv1.HostnameAddressType {
935935
continue
936936
}
937-
if !(addr.Value == targetDomain || strings.HasSuffix(addr.Value, suffix)) {
937+
if addr.Value != targetDomain && !strings.HasSuffix(addr.Value, suffix) {
938938
continue
939939
}
940940
if strings.HasPrefix(addr.Value, "v4.") || strings.HasPrefix(addr.Value, "v6.") {

0 commit comments

Comments
 (0)