multi: update linter, fix new issues

This commit is contained in:
Oliver Gugger committed 2023-06-13 11:58:33 +02:00
1 parent e549096b88
commit 56dba2df03
31 files changed
+263 -301

No files matched your search

+1 -1
View File
@@ -91,7 +91,7 @@ func (m *SyncMap[K, V]) LoadOrStore(key K, value V) (V, bool) {
result, loaded := m.Map.LoadOrStore(key, value)
item, ok := result.(V)
if !ok {
return *new(V), false //nolint: gocritic
return *new(V), false
}
return item, loaded