linter: Enable gofumpt and run against codebase (#1848)

* linter: Enable gofumpt and run against codebase

* Address shazbert's nits

* gofumpt: Fix issues after rebase
This commit is contained in:
Adrian Gallagher
2025-03-18 10:23:16 +11:00
committed by GitHub
parent 748ed71455
commit f5faca2eb2
189 changed files with 1541 additions and 1104 deletions

View File

@@ -49,6 +49,11 @@ func (b *Bithumb) SetDefaults() {
log.Errorln(log.ExchangeSys, err)
}
b.location, err = time.LoadLocation("Asia/Seoul")
if err != nil {
log.Errorf(log.ExchangeSys, "Bithumb unable to load time location: %s", err)
}
b.Features = exchange.Features{
Supports: exchange.FeaturesSupported{
REST: true,
@@ -146,11 +151,6 @@ func (b *Bithumb) Setup(exch *config.Exchange) error {
return err
}
location, err = time.LoadLocation("Asia/Seoul")
if err != nil {
return err
}
ePoint, err := b.API.Endpoints.GetURL(exchange.WebsocketSpot)
if err != nil {
return err