Skip to content

Commit

Permalink
It's redundancy calls because pop should already removed the element.
Browse files Browse the repository at this point in the history
  • Loading branch information
samnang committed Jul 18, 2023
1 parent 7050247 commit 2eeb264
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion contracts/sample_apps/02_address_book/AddressBook.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ contract AddressBook {
contacts[msg.sender][i] = contacts[msg.sender][length - 1];
}

delete contacts[msg.sender][length - 1];
contacts[msg.sender].pop();

delete aliases[msg.sender][contactAddress];
Expand Down

0 comments on commit 2eeb264

Please sign in to comment.