Skip to content

Commit a5e7a20

Browse files
update throw
Co-authored-by: Dave Mihalcik <[email protected]>
1 parent 1632524 commit a5e7a20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

sdk/src/main/java/io/opentdf/platform/sdk/KASClient.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,8 @@ public byte[] unwrap(Manifest.KeyAccess keyAccess, String policy) {
195195
if (e.getStatus().getCode() == Status.Code.INVALID_ARGUMENT) {
196196
// 400 Bad Request
197197
throw new KasBadRequestException("rewrap request 400: " + e.toString());
198-
} else {
199-
// Other errors
200-
throw e;
201198
}
199+
throw e;
202200
}
203201

204202
}

0 commit comments

Comments
 (0)