diff options
| author | David Crawshaw <crawshaw@tailscale.com> | 2021-06-18 09:22:55 -0700 |
|---|---|---|
| committer | David Crawshaw <david@zentus.com> | 2021-06-18 15:48:20 -0700 |
| commit | 297b3d6fa438c6953c5a032c7d6ae2f2c6bd4eb1 (patch) | |
| tree | d2f91d0384f3d147d747fdc447c95f6d66ec8edd /syncs | |
| parent | 3728634af90bcffe42abeb09f3609f72b8c48950 (diff) | |
| download | tailscale-297b3d6fa438c6953c5a032c7d6ae2f2c6bd4eb1.tar.xz tailscale-297b3d6fa438c6953c5a032c7d6ae2f2c6bd4eb1.zip | |
staticcheck.conf: turn off noisy lint errors
Signed-off-by: David Crawshaw <crawshaw@tailscale.com>
Diffstat (limited to 'syncs')
| -rw-r--r-- | syncs/locked_test.go | 2 | ||||
| -rw-r--r-- | syncs/watchdog.go | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/syncs/locked_test.go b/syncs/locked_test.go index 32b9b64e0..cb11f15f8 100644 --- a/syncs/locked_test.go +++ b/syncs/locked_test.go @@ -4,8 +4,6 @@ // +build go1.13,!go1.16 -//lint:file-ignore SA2001 the empty critical sections are part of triggering different internal mutex states - package syncs import ( diff --git a/syncs/watchdog.go b/syncs/watchdog.go index 36dcb0758..ba5f0816b 100644 --- a/syncs/watchdog.go +++ b/syncs/watchdog.go @@ -52,7 +52,7 @@ func Watch(ctx context.Context, mu sync.Locker, tick, max time.Duration) chan ti go func() { start := time.Now() mu.Lock() - mu.Unlock() //lint:ignore SA2001 ignore the empty critical section + mu.Unlock() elapsed := time.Since(start) if elapsed > max { elapsed = max |
