mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-05 15:10:59 +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:
@@ -219,7 +219,7 @@ func Insert(in *Item) (uint64, error) {
|
||||
func insertSQLite(ctx context.Context, tx *sql.Tx, in *Item) (uint64, error) {
|
||||
var totalInserted uint64
|
||||
for x := range in.Candles {
|
||||
var tempCandle = modelSQLite.Candle{
|
||||
tempCandle := modelSQLite.Candle{
|
||||
ExchangeNameID: in.ExchangeID,
|
||||
Base: strings.ToUpper(in.Base),
|
||||
Quote: strings.ToUpper(in.Quote),
|
||||
@@ -254,7 +254,7 @@ func insertSQLite(ctx context.Context, tx *sql.Tx, in *Item) (uint64, error) {
|
||||
func insertPostgresSQL(ctx context.Context, tx *sql.Tx, in *Item) (uint64, error) {
|
||||
var totalInserted uint64
|
||||
for x := range in.Candles {
|
||||
var tempCandle = modelPSQL.Candle{
|
||||
tempCandle := modelPSQL.Candle{
|
||||
ExchangeNameID: in.ExchangeID,
|
||||
Base: strings.ToUpper(in.Base),
|
||||
Quote: strings.ToUpper(in.Quote),
|
||||
|
||||
Reference in New Issue
Block a user