Skip to content

Commit

Permalink
[hotfix][rest] Remove unnecessary instanceof check
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Jan 10, 2019
1 parent 1f47c0a commit 4adf23d
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -123,11 +123,7 @@ protected CompletableFuture<Void> respondToRequest(ChannelHandlerContext ctx, Ht
blobKeyFuture = fileBlobKeys.get(taskManagerId);
} catch (ExecutionException e) {
final Throwable cause = ExceptionUtils.stripExecutionException(e);
if (cause instanceof RestHandlerException) {
throw (RestHandlerException) cause;
} else {
throw new RestHandlerException("Could not retrieve file blob key future.", HttpResponseStatus.INTERNAL_SERVER_ERROR, e);
}
throw new RestHandlerException("Could not retrieve file blob key future.", HttpResponseStatus.INTERNAL_SERVER_ERROR, cause);
}

final CompletableFuture<Void> resultFuture = blobKeyFuture.thenAcceptAsync(
Expand Down

0 comments on commit 4adf23d

Please sign in to comment.