From 434d9c297e3b1a77700633ce4c0b257e2f4ed645 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Sun, 30 Aug 2015 19:43:26 -0400 Subject: [PATCH] go fmt --- transactions.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transactions.go b/transactions.go index b42c9dc..72a4e73 100644 --- a/transactions.go +++ b/transactions.go @@ -551,7 +551,7 @@ func GetAccountTransactions(user *User, accountid int64, sort string, page uint6 if sort == "date-asc" { sqlsort = " ORDER BY transactions.Date ASC" balanceLimitOffset = " LIMIT ?" - balanceLimitOffsetArg = page*limit + balanceLimitOffsetArg = page * limit } else if sort == "date-desc" { numSplits, err := transaction.SelectInt("SELECT count(*) FROM splits") if err != nil { @@ -560,7 +560,7 @@ func GetAccountTransactions(user *User, accountid int64, sort string, page uint6 } sqlsort = " ORDER BY transactions.Date DESC" balanceLimitOffset = fmt.Sprintf(" LIMIT %d OFFSET ?", numSplits) - balanceLimitOffsetArg = (page + 1)*limit + balanceLimitOffsetArg = (page + 1) * limit } var sqloffset string