diff options
author | 2024-06-03 11:03:35 +0000 | |
---|---|---|
committer | 2024-06-03 12:03:35 +0100 | |
commit | 6ed6824d5dc4d08b3425fff4741c96c9cd565f73 (patch) | |
tree | a2887cd7af73b95a8534e50ff4eab4c7de1aa7c5 /vendor/codeberg.org/gruf/go-structr/key.go | |
parent | [chore]: Bump github.com/spf13/viper from 1.18.2 to 1.19.0 (#2954) (diff) | |
download | gotosocial-6ed6824d5dc4d08b3425fff4741c96c9cd565f73.tar.xz |
bump go-structr to v0.8.5 to improve memory usage (#2955)
Diffstat (limited to 'vendor/codeberg.org/gruf/go-structr/key.go')
-rw-r--r-- | vendor/codeberg.org/gruf/go-structr/key.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/codeberg.org/gruf/go-structr/key.go b/vendor/codeberg.org/gruf/go-structr/key.go index d68e3fe19..099f70f99 100644 --- a/vendor/codeberg.org/gruf/go-structr/key.go +++ b/vendor/codeberg.org/gruf/go-structr/key.go @@ -22,7 +22,7 @@ func (k Key) Key() string { // Equal returns whether keys are equal. func (k Key) Equal(o Key) bool { - return k.key == o.key + return (k.key == o.key) } // Value returns the raw slice of @@ -33,7 +33,7 @@ func (k Key) Values() []any { // Zero indicates a zero value key. func (k Key) Zero() bool { - return k.raw == nil + return (k.raw == nil) } var buf_pool sync.Pool |