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 3, 2019
1 parent f7b351e commit a5da6e1
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -126,11 +126,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 a5da6e1

Please sign in to comment.