Skip to content

Commit aa7ca7b

Browse files
committed
Revert the sync map change
1 parent 7537e41 commit aa7ca7b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/collections/syncmap.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,7 @@ func (s *SyncMap[K, V]) Load(key K) (value V, ok bool) {
1616
if !ok {
1717
return value, ok
1818
}
19-
if value, ok := val.(V); ok {
20-
return value, true
21-
}
22-
var zero V
23-
return zero, true
19+
return val.(V), true
2420
}
2521

2622
func (s *SyncMap[K, V]) Store(key K, value V) {

0 commit comments

Comments
 (0)