From 969d0db77ab60a0b043de58282e5ad624c3b0346 Mon Sep 17 00:00:00 2001 From: Huabing Zhao Date: Fri, 10 Jan 2025 04:17:36 +0000 Subject: [PATCH] foo Signed-off-by: Huabing Zhao --- internal/gatewayapi/clustersettings.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/gatewayapi/clustersettings.go b/internal/gatewayapi/clustersettings.go index 5706504f42b..40266553b46 100644 --- a/internal/gatewayapi/clustersettings.go +++ b/internal/gatewayapi/clustersettings.go @@ -11,7 +11,6 @@ import ( "math" "math/big" "net/http" - "reflect" "strings" "time" @@ -77,7 +76,7 @@ func translateTrafficFeatures(policy *egv1a1.ClusterSettings) (*ir.TrafficFeatur // If nothing was set in any of the above calls, return nil instead of an empty // container var empty ir.TrafficFeatures - if reflect.DeepEqual(empty, *ret) { + if empty == *ret { ret = nil }