Skip to content

Commit

Permalink
shadowy comment
Browse files Browse the repository at this point in the history
  • Loading branch information
icorderi committed Dec 14, 2022
1 parent 69a9144 commit edadb0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ledger/acctdeltas.go
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,8 @@ func (a *compactAccountDeltas) accountsLoadOld(tx *sql.Tx) (err error) {
case sql.ErrNoRows:
// we don't have that account, just return an empty record.
a.updateOld(idx, store.PersistedAccountData{Addr: addr})
// Note: the err will be ignored in this case since `err` is being shadowed.
// this behaviour is equivalent to `err = nil`
default:
// unexpected error - let the caller know that we couldn't complete the operation.
return err
Expand Down

0 comments on commit edadb0c

Please sign in to comment.