From 447108fed2842e264897659856e9fd9cdc32ca23 Mon Sep 17 00:00:00 2001 From: Bjørn Erik Pedersen Date: Fri, 17 May 2024 17:06:47 +0200 Subject: Add a HTTP cache for remote resources. Fixes #12502 Closes #11891 --- tpl/resources/resources.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tpl') diff --git a/tpl/resources/resources.go b/tpl/resources/resources.go index 04af756ef..34b4464be 100644 --- a/tpl/resources/resources.go +++ b/tpl/resources/resources.go @@ -369,7 +369,7 @@ func (ns *Namespace) ToCSS(args ...any) (resource.Resource, error) { } if m != nil { - if t, found := maps.LookupEqualFold(m, "transpiler"); found { + if t, _, found := maps.LookupEqualFold(m, "transpiler"); found { switch t { case transpilerDart, transpilerLibSass: transpiler = cast.ToString(t) @@ -440,7 +440,6 @@ func (ns *Namespace) Babel(args ...any) (resource.Resource, error) { var options babel.Options if m != nil { options, err = babel.DecodeOptions(m) - if err != nil { return nil, err } -- cgit v1.2.3