Skip to content

Commit 967ad6e

Browse files
committed
fix new lint error
1 parent 87fbbe9 commit 967ad6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/templates/util_dict.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ func dumpVar(v any) template.HTML {
108108
return "<pre>dumpVar: only available in dev mode</pre>"
109109
}
110110
m, ok := dumpVarMarshalable(v, map[uintptr]bool{})
111-
dumpStr := ""
111+
var dumpStr string
112112
jsonBytes, err := json.MarshalIndent(m, "", " ")
113113
if err != nil {
114114
dumpStr = fmt.Sprintf("dumpVar: unable to marshal %T: %v", v, err)

0 commit comments

Comments
 (0)