mirror of
https://github.com/shadow1ng/fscan.git
synced 2026-10-24 17:04:27 +00:00
fix: 消除 state_test.go SA2001 lint 警告
This commit is contained in:
1 parent
65e64e8967
commit
34638954b8
1 file changed
+2
-1
@@ -222,8 +222,9 @@ func TestState_GetOutputMutex(t *testing.T) {
|
||||
if mu == nil {
|
||||
t.Fatal("GetOutputMutex returned nil")
|
||||
}
|
||||
// 验证返回的指针可以正常加锁
|
||||
// 验证返回的指针可以正常加锁解锁
|
||||
mu.Lock()
|
||||
_ = 1 //nolint:staticcheck // SA2001: 故意测试空临界区
|
||||
mu.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user