summaryrefslogtreecommitdiff
path: root/gomplate.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2019-05-02 22:25:54 -0700
committerDave Henderson <dhenderson@gmail.com>2019-05-02 22:28:30 -0700
commit2be2c1168085e0234a0cf06dab93b6d763bf3f7d (patch)
tree8debeb071f9f246785817c97480edceaba1f4cd5 /gomplate.go
parentb65e14e1fda1c005a07ec9b98e746ce3d699521a (diff)
Linting more (and fixing more)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
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 {