Commit ebae1037 authored by akwizgran's avatar akwizgran

Remove unnecessary null check.

parent 0c99ef0e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment