mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
Remove unnecessary null check.
This commit is contained in:
@@ -103,7 +103,6 @@ class IdentityManagerImpl implements IdentityManager, OpenDatabaseHook {
|
||||
db.addAccount(txn, cached);
|
||||
LOG.info("Account stored");
|
||||
} else if (shouldStoreKeys) {
|
||||
requireNonNull(cached);
|
||||
byte[] publicKey = requireNonNull(cached.getHandshakePublicKey());
|
||||
byte[] privateKey = requireNonNull(cached.getHandshakePrivateKey());
|
||||
db.setHandshakeKeyPair(txn, cached.getId(), publicKey, privateKey);
|
||||
|
||||
Reference in New Issue
Block a user