util: Drop outdated comments (#14787)

This commit is contained in:
dustinface 2023-03-21 15:34:26 +07:00 committed by GitHub
parent f09d051552
commit aeddd8e92e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -385,9 +385,8 @@ class FileKeyring(FileSystemEventHandler): # type: ignore[misc] # Class cannot
# When writing for the first time, we should have a cached passphrase which hasn't been
# validated (because it can't be validated yet...)
# TODO Fix hinting in `KeyringWrapper` to get rid of the ignores below
if not self.has_content() and KeyringWrapper.get_shared_instance().has_cached_master_passphrase(): # noqa: E501
passphrase = KeyringWrapper.get_shared_instance().get_cached_master_passphrase()[0] # noqa: E501
if not self.has_content() and KeyringWrapper.get_shared_instance().has_cached_master_passphrase():
passphrase = KeyringWrapper.get_shared_instance().get_cached_master_passphrase()[0]
else:
# TODO, this prompts for the passphrase interactively, move this out
passphrase = obtain_current_passphrase(use_passphrase_cache=True)