mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 23:16:54 +00:00
Bump golangci-lint to v1.24.0, linter fixes and general code improvements (#478)
* Bump golangci-lint version, update Go version deps and generic code improvements * Fix wesbocket resp nil check and zip closures * Update pprof path
This commit is contained in:
@@ -61,8 +61,9 @@ func (t *TimedMutex) stopTimer() bool {
|
||||
// isTimerNil safely read locks to detect nil
|
||||
func (t *TimedMutex) isTimerNil() bool {
|
||||
t.timerLock.RLock()
|
||||
defer t.timerLock.RUnlock()
|
||||
return t.timer == nil
|
||||
isNil := t.timer == nil
|
||||
t.timerLock.RUnlock()
|
||||
return isNil
|
||||
}
|
||||
|
||||
// setTimer safely locks and sets a timer
|
||||
|
||||
Reference in New Issue
Block a user