build: Enable gometalinter "staticcheck" check

This commit is contained in:
Jakob Borg
2016-12-17 15:27:44 +01:00
committed by Jakob Borg
parent ead7281c20
commit 744c2e82b5
4 changed files with 6 additions and 2 deletions

View File

@@ -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()