Skip to content

Commit 531a871

Browse files
committed
Cleaning up the code in the parseVersion function.
1 parent afec681 commit 531a871

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/amazonaws/encryptionsdk/model/CiphertextHeaders.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ public Boolean isComplete() {
180180
*/
181181
private int parseVersion(final byte[] b, final int off) throws ParseException {
182182
version_ = PrimitivesParser.parseByte(b, off);
183-
if(CiphertextType.deserialize(version_).getValue() != VersionInfo.CURRENT_CIPHERTEXT_VERSION ) {
183+
if (CiphertextType.deserialize(version_).getValue() != VersionInfo.CURRENT_CIPHERTEXT_VERSION ) {
184184
throw new BadCiphertextException("Invalid version type.");
185185
}
186186
return 1;

0 commit comments

Comments
 (0)