howeyc further reduced
This commit is contained in:
@@ -21,7 +21,9 @@ func (file File) Deltas(like ...Like) ([]Delta, error) {
|
||||
}
|
||||
result := make([]Delta, 0, len(transactions)*2)
|
||||
for _, transaction := range transactions {
|
||||
for _, delta := range newDeltas(transaction) {
|
||||
for _, acc := range transaction.AccountChanges {
|
||||
value, _ := acc.Balance.Float64()
|
||||
delta := newDelta(transaction.Date, acc.Name, value)
|
||||
if !likes(like).all(delta) {
|
||||
continue
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user