summaryrefslogtreecommitdiff
path: root/internal/texttemplate
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2024-11-10 15:38:25 -0500
committerGitHub <noreply@github.com>2024-11-10 20:38:25 +0000
commita13844c9c0a3d03e0fba4627a51445ca9ae8100b (patch)
tree335758c94d0f8087e549af92c502ba767335f102 /internal/texttemplate
parentd4647871a06410549748b242547991736be96c8c (diff)
fix(lint): Address new lint warnings from golangci-lint 1.62 (#2256)
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to 'internal/texttemplate')
-rw-r--r--internal/texttemplate/funcs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/texttemplate/funcs.go b/internal/texttemplate/funcs.go
index 08e6bdbb..e2f7d150 100644
--- a/internal/texttemplate/funcs.go
+++ b/internal/texttemplate/funcs.go
@@ -12,6 +12,8 @@ import (
)
// indexArg checks if a reflect.Value can be used as an index, and converts it to int if possible.
+//
+//nolint:revive
func indexArg(index reflect.Value, cap int) (int, error) {
var x int64
switch index.Kind() {