summaryrefslogtreecommitdiff
path: root/gomplate.go
diff options
context:
space:
mode:
Diffstat (limited to 'gomplate.go')
-rw-r--r--gomplate.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/gomplate.go b/gomplate.go
index 4f7ef146..6d9a30e8 100644
--- a/gomplate.go
+++ b/gomplate.go
@@ -32,6 +32,7 @@ func (g *gomplate) runTemplate(t *tplate) error {
return err
}
+ // nolint: gocritic
switch t.target.(type) {
case io.Closer:
if t.target != os.Stdout {
@@ -179,6 +180,7 @@ func mappingNamer(outMap string, g *gomplate) func(string) (string, error) {
return "", err
}
ctx := &context{}
+ // nolint: gocritic
switch c := g.context.(type) {
case *context:
for k, v := range *c {