Skip to content

Commit

Permalink
chore: fix sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandra-bel committed Mar 14, 2024
1 parent 1636931 commit f3e5253
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ protected SpecificationUtil<WalletKey> getSpecificationUtil() {
@SneakyThrows
public byte[] getPrivateKeyByWalletIdentifierAsBytes(long walletId, String algorithm) {
Object privateKey = getPrivateKeyByWalletIdentifierAndAlgorithm(walletId, SupportedAlgorithms.valueOf(algorithm));
if (privateKey instanceof x21559PrivateKey) {
return ((x21559PrivateKey) privateKey).asByte();
if (privateKey instanceof x21559PrivateKey x21559PrivateKey) {
return x21559PrivateKey.asByte();
} else {
return ((ECPrivateKey) privateKey).getEncoded();
}
Expand Down

0 comments on commit f3e5253

Please sign in to comment.