evgenyneu/keychain-swift

Is keychain.clear() intended to always return false when no keys are saved?

crisanvlad opened this issue · 0 comments

I am implementing a feature to let the user reset the keychain in case there are issues and I check

if keychain.clear() {
// clearing successfull
} else {
//show error
}

And I was wondering if the clear() method shouldn't check inside if keychain.allKeys is empty before returning false.