From: Jayson Wang Date: Wed, 28 Jan 2026 15:50:57 +0000 (+0800) Subject: Fix data race when clearing cache in cachebusters X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8a979d54d1e5b3dbd68272413249fd7ff36b6c81;p=brevno-suite%2Fhugo Fix data race when clearing cache in cachebusters --- diff --git a/config/commonConfig.go b/config/commonConfig.go index 947078672..2c10ba9cf 100644 --- a/config/commonConfig.go +++ b/config/commonConfig.go @@ -437,7 +437,7 @@ func (c *CacheBuster) CompileConfig(logger loggers.Logger) error { return nil } return func(ss string) bool { - match = targetRe.MatchString(ss) + match := targetRe.MatchString(ss) matchString := "no match" if match { matchString = "match!"