fix error variable not be set to nil after resolve this error

This commit is contained in:
MaysWind
2020-12-28 23:13:17 +08:00
parent e166d1806e
commit bab67b6a5f
+2
View File
@@ -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++ {