mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 15:10:46 +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:
@@ -53,12 +53,11 @@ func GetHoldings(exch string) (Holdings, error) {
|
||||
exch = strings.ToLower(exch)
|
||||
|
||||
service.Lock()
|
||||
defer service.Unlock()
|
||||
h, ok := service.accounts[exch]
|
||||
if !ok {
|
||||
service.Unlock()
|
||||
return Holdings{}, errors.New("exchange account holdings not found")
|
||||
}
|
||||
defer service.Unlock()
|
||||
return *h.h, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user