mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 23:16:45 +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:
@@ -40,7 +40,7 @@ func TestAudit(t *testing.T) {
|
||||
name string
|
||||
config *database.Config
|
||||
runner func(t *testing.T)
|
||||
closer func(dbConn *database.Db) error
|
||||
closer func(dbConn *database.Instance) error
|
||||
output interface{}
|
||||
}{
|
||||
{
|
||||
|
||||
@@ -41,7 +41,7 @@ func TestScript(t *testing.T) {
|
||||
name string
|
||||
config *database.Config
|
||||
runner func()
|
||||
closer func(dbConn *database.Db) error
|
||||
closer func(dbConn *database.Instance) error
|
||||
output interface{}
|
||||
}{
|
||||
{
|
||||
|
||||
@@ -20,6 +20,7 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
// ErrNoResults is the error returned if no results are found
|
||||
ErrNoResults = errors.New("no results found")
|
||||
)
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ func TestWithdraw(t *testing.T) {
|
||||
name string
|
||||
config *database.Config
|
||||
runner func(t *testing.T)
|
||||
closer func(dbConn *database.Db) error
|
||||
closer func(dbConn *database.Instance) error
|
||||
output interface{}
|
||||
}{
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user