Question about `if` statement in `editLedger` method
ambujsahu81 opened this issue · comments
Ambuj sahu commented
In the following code on line 39 , it seems that ledger.has(baseElement)
will always be true. Since on line 37 base element was added to ledger. And hence it makes the whole expression (!wanted && !ledger.has(baseElement))
to be always false.
It seems that the if statement might not be required ?
Lines 37 to 41 in e412983