mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-08-29 23:21:12 +02:00
multi: update linter, fix new issues
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user