Skip to content
Snippets Groups Projects
Verified Commit ebae1037 authored by akwizgran's avatar akwizgran
Browse files

Remove unnecessary null check.

parent 0c99ef0e
No related branches found
No related tags found
1 merge request!1082Generate and store handshake key pair at startup if necessary
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment