mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 00:34:28 +08:00
fix error variable not be set to nil after resolve this error
This commit is contained in:
@@ -240,6 +240,8 @@ func (s *TransactionService) CreateTransaction(transaction *models.Transaction,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
err = nil
|
||||||
|
|
||||||
// Insert transaction tag index
|
// Insert transaction tag index
|
||||||
if len(transactionTagIndexs) > 0 {
|
if len(transactionTagIndexs) > 0 {
|
||||||
for i := 0; i < len(transactionTagIndexs); i++ {
|
for i := 0; i < len(transactionTagIndexs); i++ {
|
||||||
|
|||||||
Reference in New Issue
Block a user