tpl/resources: Fix data race in ToCSS

Fixes #10542
This commit is contained in:
Bjørn Erik Pedersen 2022-12-21 11:19:38 +01:00
parent effa6a4226
commit aa2c724195

View file

@ -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)