mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 23:16:53 +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:
@@ -773,7 +773,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.StringSliceContainsInsensitive(supportedDurations, in) {
|
||||
return time.Nanosecond, errInvalidInterval
|
||||
return time.Nanosecond, kline.ErrInvalidInterval
|
||||
}
|
||||
switch in {
|
||||
case "1d":
|
||||
|
||||
Reference in New Issue
Block a user