aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/resources
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2022-12-21 11:19:38 +0100
committerBjørn Erik Pedersen <[email protected]>2022-12-21 12:26:42 +0100
commitaa2c724195ae53e698dfaa7f9bea63e5cecea391 (patch)
treeee06a0dc2be234318fec45eee4cd507539985a8d /tpl/resources
parenteffa6a4226214b10c1667aa79ed7e9d39656f11a (diff)
downloadhugo-aa2c724195ae53e698dfaa7f9bea63e5cecea391.tar.gz
hugo-aa2c724195ae53e698dfaa7f9bea63e5cecea391.zip
tpl/resources: Fix data race in ToCSS
Fixes #10542
Diffstat (limited to 'tpl/resources')
-rw-r--r--tpl/resources/resources.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go
index fe6fd0434..9d663cb46 100644
--- a/tpl/resources/resources.go
+++ b/tpl/resources/resources.go
@@ -364,8 +364,7 @@ func (ns *Namespace) ToCSS(args ...any) (resource.Resource, error) {
}
if m != nil {
- maps.PrepareParams(m)
- if t, found := m["transpiler"]; found {
+ if t, found := maps.LookupEqualFold(m, "transpiler"); found {
switch t {
case transpilerDart, transpilerLibSass:
transpiler = cast.ToString(t)