Add code linting to build #13

Merged
jacob1123 merged 57 commits from linting into master 2022-02-20 23:53:48 +01:00
Showing only changes of commit 1bd38bb367 - Show all commits

View File

@ -84,7 +84,6 @@ func (h *Handler) budgetingForMonth(c *gin.Context) {
return return
} }
// skip everything in the future
categoriesWithBalance, moneyUsed := h.calculateBalances( categoriesWithBalance, moneyUsed := h.calculateBalances(
budget, firstOfNextMonth, firstOfMonth, categories, cumultativeBalances) budget, firstOfNextMonth, firstOfMonth, categories, cumultativeBalances)
@ -207,6 +206,7 @@ func (*Handler) CalculateCategoryBalances(cat *postgres.GetCategoriesRow,
continue continue
} }
// skip everything in the future
if !bal.Date.Before(firstOfNextMonth) { if !bal.Date.Before(firstOfNextMonth) {
continue continue
} }