Skip to content

Commit 28fe9ed

Browse files
fix string reuse in kvstore Entry.String()
Co-authored-by: Peter Bourgon <[email protected]>
1 parent 803bd42 commit 28fe9ed

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kvstore/kvstore.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,9 @@ func (e *Entry) String() string {
2727
return ""
2828
}
2929

30+
e.s = string(b)
3031
e.validString = true
31-
32-
return string(b)
33-
32+
return e.s
3433
}
3534

3635
// Store represents a Fastly kv store

0 commit comments

Comments
 (0)