mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-06 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:
@@ -34,9 +34,7 @@ type exchange struct {
|
||||
FIX bool
|
||||
}
|
||||
|
||||
var (
|
||||
errInvalidExchangeName = errors.New("invalid exchange name")
|
||||
)
|
||||
var errInvalidExchangeName = errors.New("invalid exchange name")
|
||||
|
||||
func main() {
|
||||
var newExchangeName string
|
||||
@@ -260,7 +258,7 @@ func runCommand(dir, param string) error {
|
||||
func newFile(path string) {
|
||||
_, err := os.Stat(path)
|
||||
if os.IsNotExist(err) {
|
||||
var file, err = os.Create(path)
|
||||
file, err := os.Create(path)
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user