Skip to content

Commit ea247a6

Browse files
committed
Adapt code to linter rule
1 parent 69e53e0 commit ea247a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/json_size.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ type ExpectedJSONSize interface {
1616
// Do not use it when a precise value is required.
1717
func ExpectedJSONSizeString(s string) int {
1818
// 2x quote + length of string + escaping overhead
19-
var out int = quotes + len(s)
19+
out := quotes + len(s)
2020
for _, r := range s {
2121
if r == '"' || r == '\\' {
2222
out += 1

0 commit comments

Comments
 (0)