mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 07:26:47 +00:00
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:
@@ -5,9 +5,7 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
var (
|
||||
b Base
|
||||
)
|
||||
var b Base
|
||||
|
||||
func TestStart(_ *testing.T) {
|
||||
b = Base{
|
||||
@@ -100,7 +98,8 @@ func TestSetup(t *testing.T) {
|
||||
for _, config := range testConfigs {
|
||||
config.provider = &CommunicationProvider{
|
||||
isEnabled: config.isEnabled,
|
||||
isConnected: config.isConnected}
|
||||
isConnected: config.isConnected,
|
||||
}
|
||||
ic = append(ic, config.provider)
|
||||
}
|
||||
|
||||
@@ -134,7 +133,8 @@ func TestPushEvent(t *testing.T) {
|
||||
for _, config := range testConfigs {
|
||||
config.provider = &CommunicationProvider{
|
||||
isEnabled: config.Enabled,
|
||||
isConnected: config.Connected}
|
||||
isConnected: config.Connected,
|
||||
}
|
||||
ic = append(ic, config.provider)
|
||||
}
|
||||
|
||||
|
||||
@@ -295,6 +295,7 @@ func (s *Slack) handleMessageResponse(resp []byte, data WebsocketResponse) error
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *Slack) handleErrorResponse(data WebsocketResponse) error {
|
||||
if data.Error.Msg == "Socket URL has expired" {
|
||||
if s.Verbose {
|
||||
|
||||
Reference in New Issue
Block a user