mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 15:10:44 +00:00
common: Replace StringDataCompare with slices.Contains and cleanup string funcs (#1631)
* common: Replace StringDataCompare with slices.Contains and cleanup string funcs * common/docs: Update SliceDifference and remove outdated steps from ADD_NEW_EXCHANGE.md * common: Improve SliceDifference
This commit is contained in:
@@ -903,7 +903,7 @@ func (bot *Engine) SetupExchanges() error {
|
||||
bot.dryRunParamInteraction("exchanges")
|
||||
exchangesOverride = strings.Split(bot.Settings.Exchanges, ",")
|
||||
for x := range exchangesOverride {
|
||||
if !common.StringDataCompareInsensitive(exchange.Exchanges, exchangesOverride[x]) {
|
||||
if !common.StringSliceCompareInsensitive(exchange.Exchanges, exchangesOverride[x]) {
|
||||
return fmt.Errorf("exchange %s not found", exchangesOverride[x])
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user