Skip to content

Commit 912305a

Browse files
fix examples redundancy
1 parent 23d94d1 commit 912305a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Examples/runtimes/java/DynamoDbEncryption/src/main/java/software/amazon/cryptography/examples/GetEncryptedDataKeyDescriptionExample.java

+1-6
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,10 @@ public static void getEncryptedDataKeyDescription(
6969
assert output.EncryptedDataKeyDescriptionOutput().get(0).keyProviderId().equals(expectedKeyProviderId);
7070
if(expectedKeyProviderId.startsWith("aws-kms")) {
7171
assert output.EncryptedDataKeyDescriptionOutput().get(0).keyProviderInfo().equals(expectedKeyProviderInfo);
72-
} else {
73-
assert output.EncryptedDataKeyDescriptionOutput().get(0).keyProviderInfo() == expectedKeyProviderInfo;
74-
}
72+
}
7573
if(output.EncryptedDataKeyDescriptionOutput().get(0).keyProviderId().equals("aws-kms-hierarchy")) {
7674
assert output.EncryptedDataKeyDescriptionOutput().get(0).branchKeyId().equals(expectedBranchKeyId);
7775
assert output.EncryptedDataKeyDescriptionOutput().get(0).branchKeyVersion().equals(expectedBranchKeyVersion);
78-
} else {
79-
assert output.EncryptedDataKeyDescriptionOutput().get(0).branchKeyId() == expectedBranchKeyId;
80-
assert output.EncryptedDataKeyDescriptionOutput().get(0).branchKeyVersion() == expectedBranchKeyVersion;
8176
}
8277
}
8378
public static void main(final String[] args) {

0 commit comments

Comments
 (0)