From 1ebbc31fb242f4dd85a8db188f77d838b61d6db8 Mon Sep 17 00:00:00 2001 From: Dave Henderson Date: Sat, 22 Feb 2025 21:10:31 -0500 Subject: fix(lint): Address new lint warnings (#2329) Signed-off-by: Dave Henderson --- render.go | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) (limited to 'render.go') diff --git a/render.go b/render.go index d5e74be7..c7a10dba 100644 --- a/render.go +++ b/render.go @@ -9,12 +9,10 @@ import ( "path" "slices" "strings" - "sync" "text/template" "time" "github.com/hairyhenderson/go-fsimpl" - "github.com/hairyhenderson/go-fsimpl/autofs" "github.com/hairyhenderson/gomplate/v4/internal/datafs" "github.com/hairyhenderson/gomplate/v4/internal/funcs" ) @@ -372,20 +370,4 @@ func parseNestedTemplate(_ context.Context, fsys fs.FS, alias, fname string, tmp } // DefaultFSProvider is the default filesystem provider used by gomplate -var DefaultFSProvider = sync.OnceValue( - func() fsimpl.FSProvider { - fsp := fsimpl.NewMux() - - // start with all go-fsimpl filesystems - fsp.Add(autofs.FS) - - // override go-fsimpl's filefs with wdfs to handle working directories - fsp.Add(datafs.WdFS) - - // gomplate-only filesystem - fsp.Add(datafs.EnvFS) - fsp.Add(datafs.StdinFS) - fsp.Add(datafs.MergeFS) - - return fsp - })() +var DefaultFSProvider = datafs.DefaultProvider -- cgit v1.2.3