mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-23 15:10:15 +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:
@@ -51,7 +51,7 @@ func (g *GctScriptManager) autoLoad() {
|
||||
g.config.AutoLoad[x])
|
||||
continue
|
||||
}
|
||||
var name = g.config.AutoLoad[x]
|
||||
name := g.config.AutoLoad[x]
|
||||
if filepath.Ext(name) != common.GctExt {
|
||||
name += common.GctExt
|
||||
}
|
||||
|
||||
@@ -28,10 +28,8 @@ type Error struct {
|
||||
Cause error
|
||||
}
|
||||
|
||||
var (
|
||||
// ScriptPath path to load/save scripts
|
||||
ScriptPath string
|
||||
)
|
||||
// ScriptPath path to load/save scripts
|
||||
var ScriptPath string
|
||||
|
||||
var (
|
||||
// ErrScriptingDisabled error message displayed when gctscript is disabled
|
||||
|
||||
@@ -398,7 +398,6 @@ func TestRemoveVM(t *testing.T) {
|
||||
}
|
||||
id, _ := uuid.FromString("6f20c907-64a0-48f2-848a-7837dee61672")
|
||||
err := manager.RemoveVM(id)
|
||||
|
||||
if err != nil {
|
||||
if err.Error() != "VM 6f20c907-64a0-48f2-848a-7837dee61672 not found" {
|
||||
t.Fatal(err)
|
||||
|
||||
Reference in New Issue
Block a user