]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Fix data race when clearing cache in cachebusters
authorJayson Wang <jayson@laboys.org>
Wed, 28 Jan 2026 15:50:57 +0000 (23:50 +0800)
committerGitHub <noreply@github.com>
Wed, 28 Jan 2026 15:50:57 +0000 (16:50 +0100)
config/commonConfig.go

index 9470786724fc7471880b09ea6244c5080d74c97e..2c10ba9cfc6ca5c066fb6108e81d61a191c935e0 100644 (file)
@@ -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!"