From 0feb400cca2602e87b4748e2478d0b35422c36c1 Mon Sep 17 00:00:00 2001 From: Justin Hiemstra Date: Tue, 26 Sep 2023 15:59:45 +0000 Subject: [PATCH] Make code formatting slightly more consistent --- director/cache_ads.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/director/cache_ads.go b/director/cache_ads.go index 6f5160cb2..05f109283 100644 --- a/director/cache_ads.go +++ b/director/cache_ads.go @@ -163,8 +163,7 @@ func GetAdsForPath(reqPath string) (originNamespace NamespaceAd, originAds []Ser } serverAd := item.Key() if serverAd.Type == OriginType { - ns := matchesPrefix(reqPath, item.Value()) - if ns != nil { + if ns := matchesPrefix(reqPath, item.Value()); ns != nil { if best == nil || len(ns.Path) > len(best.Path) { best = ns // If anything was previously set by a namespace that constituted a shorter