We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ffdf77 commit ead17c9Copy full SHA for ead17c9
concurrent_map.go
@@ -325,12 +325,12 @@ func fnv32(key string) uint32 {
325
}
326
327
// Reverse process of Marshal.
328
-func (m ConcurrentMap[V]) UnmarshalJSON(b []byte) (err error) {
+func (m *ConcurrentMap[V]) UnmarshalJSON(b []byte) (err error) {
329
tmp := make(map[string]V)
330
331
// Unmarshal into a single map.
332
if err := json.Unmarshal(b, &tmp); err != nil {
333
- return nil
+ return err
334
335
336
// foreach key,value pair in temporary map insert into our concurrent map.
0 commit comments