mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-04 15:10:54 +00:00
build/linters: Bump Go to v1.25 and golangci-lint to v2.4.0 (#2005)
* build/linters: Bump Go to v1.25 and golangci-lint to v2.4.0 * refactor: Update TODO comments for net.Listen and net.DialTimeout; improve variable naming in websocket and exchange methods * refactor: Rename massageMissingData to backfillMissingData for clarity and update references in RSI and MFI calculations * fix: Correct typo in TODO comment for net.Listen in RPC server
This commit is contained in:
@@ -2861,7 +2861,7 @@ func withdrawlRequestByExchangeID(c *cli.Context) error {
|
||||
return cli.ShowSubcommandHelp(c)
|
||||
}
|
||||
|
||||
var exchange, currency, assetType string
|
||||
var exchange, ccy, assetType string
|
||||
if c.IsSet("exchange") {
|
||||
exchange = c.String("exchange")
|
||||
} else {
|
||||
@@ -2896,7 +2896,7 @@ func withdrawlRequestByExchangeID(c *cli.Context) error {
|
||||
}
|
||||
|
||||
if c.IsSet("currency") {
|
||||
currency = c.String("currency")
|
||||
ccy = c.String("currency")
|
||||
}
|
||||
|
||||
if c.IsSet("asset") {
|
||||
@@ -2922,7 +2922,7 @@ func withdrawlRequestByExchangeID(c *cli.Context) error {
|
||||
Exchange: exchange,
|
||||
Id: ID,
|
||||
Limit: int32(limit), //nolint:gosec // TODO: SQL boiler's QueryMode limit only accepts the int type
|
||||
Currency: currency,
|
||||
Currency: ccy,
|
||||
AssetType: assetType,
|
||||
},
|
||||
)
|
||||
|
||||
@@ -22,11 +22,11 @@ var (
|
||||
func clearScreen() error {
|
||||
switch runtime.GOOS {
|
||||
case "windows":
|
||||
cmd := exec.Command("cmd", "/c", "cls")
|
||||
cmd := exec.CommandContext(context.TODO(), "cmd", "/c", "cls")
|
||||
cmd.Stdout = os.Stdout
|
||||
return cmd.Run()
|
||||
default:
|
||||
cmd := exec.Command("clear")
|
||||
cmd := exec.CommandContext(context.TODO(), "clear")
|
||||
cmd.Stdout = os.Stdout
|
||||
return cmd.Run()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user