Codebase list golang-github-go-logr-logr / 653e8e8
Fix lint warning Tim Hockin 2 years ago
1 changed file(s) with 2 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
674674 func (f *Formatter) AddValues(kvList []interface{}) {
675675 // Three slice args forces a copy.
676676 n := len(f.values)
677 vals := append(f.values[:n:n], kvList...)
677 vals := f.values[:n:n]
678 vals = append(vals, kvList...)
678679 if hook := f.opts.RenderValuesHook; hook != nil {
679680 vals = hook(f.sanitize(vals))
680681 }