summaryrefslogtreecommitdiff
path: root/context.go
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2022-09-25 10:32:07 -0400
committerDave Henderson <dhenderson@gmail.com>2022-09-25 10:56:26 -0400
commit7d9d3351ab165b3d9f6af767a707c33fbca5eb70 (patch)
tree400e0be0ca6d9e2308a3fc7cbf2cf1de0cd4aee3 /context.go
parent64a0269c2672c2d1a6984832cfd0a6ac1c0e725b (diff)
Fixing deprecation annotation syntax
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'context.go')
-rw-r--r--context.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/context.go b/context.go
index 6c2f04a2..2114b7df 100644
--- a/context.go
+++ b/context.go
@@ -22,7 +22,9 @@ func (c *tmplctx) Env() map[string]string {
}
// createTmplContext reads the datasources for the given aliases
-func createTmplContext(ctx context.Context, aliases []string, d *data.Data) (interface{}, error) {
+func createTmplContext(ctx context.Context, aliases []string,
+ //nolint:staticcheck
+ d *data.Data) (interface{}, error) {
var err error
tctx := &tmplctx{}
for _, a := range aliases {