Skip to content

Commit

Permalink
Make code formatting slightly more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
jhiemstrawisc committed Sep 26, 2023
1 parent dda4c5b commit 0feb400
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions director/cache_ads.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0feb400

Please sign in to comment.