multi: update linter, fix new issues

This commit is contained in:
Oliver Gugger
2023-05-12 10:09:56 +02:00
parent e549096b88
commit 56dba2df03
31 changed files with 263 additions and 301 deletions

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