From 976d48da5d704fc34bddb5841756fd8a1fae6de5 Mon Sep 17 00:00:00 2001 From: Rasheed Mudasiru Date: Sun, 14 Jun 2026 18:27:15 +0100 Subject: [PATCH] Fix formatting of if statement in matchers.go Signed-off-by: Rasheed Mudasiru --- modules/caddyhttp/matchers.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/caddyhttp/matchers.go b/modules/caddyhttp/matchers.go index ca55241ef..52abe4733 100644 --- a/modules/caddyhttp/matchers.go +++ b/modules/caddyhttp/matchers.go @@ -343,9 +343,9 @@ outer: host = repl.ReplaceAll(host, "") if strings.Contains(host, "*") { - if host == "*" { - return true, nil - } + if host == "*" { + return true, nil + } patternParts := strings.Split(host, ".") incomingParts := strings.Split(reqHost, ".") if len(patternParts) != len(incomingParts) {