Skip to content

Commit 9d10b3f

Browse files
sboulkourclaude
andcommitted
refactor: drop redundant ptr.Deref on StripTrailingHostDot
The field is nil-checked just above, so dereference it directly. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Signed-off-by: Salim Boulkour <salim.boulkour@algolia.com>
1 parent 9f82684 commit 9d10b3f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

internal/gatewayapi/clienttrafficpolicy.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ func translateListenerHeaderSettings(headerSettings *egv1a1.HeaderSettings, http
927927

928928
if headerSettings.Host != nil && headerSettings.Host.StripTrailingHostDot != nil {
929929
httpIR.Host = &ir.HostSettings{
930-
StripTrailingHostDot: ptr.Deref(headerSettings.Host.StripTrailingHostDot, false),
930+
StripTrailingHostDot: *headerSettings.Host.StripTrailingHostDot,
931931
}
932932
}
933933

0 commit comments

Comments
 (0)