mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-13 15:09:42 +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:
@@ -772,7 +772,7 @@ func exchangeOHLCV(args ...objects.Object) (objects.Object, error) {
|
||||
|
||||
// parseInterval will parse the interval param of indictors that have them and convert to time.Duration
|
||||
func parseInterval(in string) (time.Duration, error) {
|
||||
if !common.StringDataContainsInsensitive(supportedDurations, in) {
|
||||
if !common.StringSliceContainsInsensitive(supportedDurations, in) {
|
||||
return time.Nanosecond, errInvalidInterval
|
||||
}
|
||||
switch in {
|
||||
|
||||
Reference in New Issue
Block a user