Skip to content

Commit 653e8e8

Browse files
committed
Fix lint warning
1 parent 561de0c commit 653e8e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

funcr/funcr.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,8 @@ func (f *Formatter) AddName(name string) {
675675
func (f *Formatter) AddValues(kvList []interface{}) {
676676
// Three slice args forces a copy.
677677
n := len(f.values)
678-
vals := append(f.values[:n:n], kvList...)
678+
vals := f.values[:n:n]
679+
vals = append(vals, kvList...)
679680
if hook := f.opts.RenderValuesHook; hook != nil {
680681
vals = hook(f.sanitize(vals))
681682
}

0 commit comments

Comments
 (0)