From bab67b6a5fd8edf8151dae84c9142aefa0eef976 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Mon, 28 Dec 2020 23:13:17 +0800 Subject: [PATCH] fix error variable not be set to nil after resolve this error --- pkg/services/transactions.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/services/transactions.go b/pkg/services/transactions.go index fb6fb5bb..539e0444 100644 --- a/pkg/services/transactions.go +++ b/pkg/services/transactions.go @@ -240,6 +240,8 @@ func (s *TransactionService) CreateTransaction(transaction *models.Transaction, } } + err = nil + // Insert transaction tag index if len(transactionTagIndexs) > 0 { for i := 0; i < len(transactionTagIndexs); i++ {