Skip to content

Commit

Permalink
funcr: Be consistent about quoted
Browse files Browse the repository at this point in the history
  • Loading branch information
thockin committed Dec 4, 2023
1 parent a5e9a4a commit ff10a9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions funcr/funcr.go
Original file line number Diff line number Diff line change
Expand Up @@ -542,9 +542,7 @@ func (f Formatter) prettyWithFlags(value any, flags uint32, depth int) string {
name = fld.Name
}
// field names can't contain characters which need escaping
buf.WriteByte('"')
buf.WriteString(name)
buf.WriteByte('"')
buf.WriteString(f.quoted(name, false))
buf.WriteByte(f.colon())
buf.WriteString(f.prettyWithFlags(v.Field(i).Interface(), 0, depth+1))
}
Expand Down

0 comments on commit ff10a9b

Please sign in to comment.