Archived
build: Enable gometalinter "staticcheck" check
This commit is contained in:
1 parent
ead7281c20
commit
744c2e82b5
4 files changed
+6
-2
No files matched your search
@@ -157,6 +157,7 @@ func TestRWMutex(t *testing.T) {
|
||||
}()
|
||||
|
||||
mut.Lock()
|
||||
_ = 1 // skip empty critical section check
|
||||
mut.Unlock()
|
||||
|
||||
if len(messages) != 2 {
|
||||
@@ -170,6 +171,7 @@ func TestRWMutex(t *testing.T) {
|
||||
mut.RLock()
|
||||
mut.RLock()
|
||||
mut.RLock()
|
||||
_ = 1 // skip empty critical section check
|
||||
mut.RUnlock()
|
||||
mut.RUnlock()
|
||||
mut.RUnlock()
|
||||
|
||||
Reference in new issue
Block a user