From 5d27910bca26a8bd60fff53352736a423c5bebf4 Mon Sep 17 00:00:00 2001 From: Mariano <9205080+marianososto@users.noreply.github.com> Date: Fri, 26 Apr 2024 11:25:53 -0300 Subject: [PATCH] remove unnecessary break --- api/handlers/transactions/repository.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/api/handlers/transactions/repository.go b/api/handlers/transactions/repository.go index 07dc31a2..fffb7201 100644 --- a/api/handlers/transactions/repository.go +++ b/api/handlers/transactions/repository.go @@ -1083,15 +1083,12 @@ func (r *Repository) buildChainActivityQueryTops(q ChainActivityTopsQuery) strin case Hour: start = q.From.Truncate(1 * time.Hour).UTC().Format(time.RFC3339) stop = q.To.Truncate(1 * time.Hour).UTC().Format(time.RFC3339) - break case Day: start = q.From.Truncate(24 * time.Hour).UTC().Format(time.RFC3339) stop = q.To.Truncate(24 * time.Hour).UTC().Format(time.RFC3339) - break case Month: start = time.Date(q.From.Year(), q.From.Month(), 1, 0, 0, 0, 0, q.From.Location()).UTC().Format(time.RFC3339) stop = time.Date(q.To.Year(), q.To.Month(), 1, 0, 0, 0, 0, q.To.Location()).UTC().Format(time.RFC3339) - break default: start = time.Date(q.From.Year(), 1, 1, 0, 0, 0, 0, q.From.Location()).UTC().Format(time.RFC3339) stop = time.Date(q.To.Year(), 1, 1, 0, 0, 0, 0, q.To.Location()).UTC().Format(time.RFC3339)