This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not check for existence of key prior to deletion
We only need to test that the return value from `removeItem()` is non-null. A `null` value indicates an error, while true/false indicates the operation occurred; different adapters will return different values depending on whether the key existed, so a boolean value always indicates the key no longer exists in the storage.
- Loading branch information
1 parent
10eb0a3
commit 580cb67
Showing
2 changed files
with
2 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters