Skip to content

Commit

Permalink
Minor refactor in HttpRemoteTask
Browse files Browse the repository at this point in the history
  • Loading branch information
haozhun committed Sep 6, 2018
1 parent c8f1b72 commit 80894dc
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -495,10 +495,7 @@ private synchronized void sendUpdate()

List<TaskSource> sources = getSources();

Optional<PlanFragment> fragment = Optional.empty();
if (sendPlan.get()) {
fragment = Optional.of(planFragment);
}
Optional<PlanFragment> fragment = sendPlan.get() ? Optional.of(planFragment) : Optional.empty();
TaskUpdateRequest updateRequest = new TaskUpdateRequest(
session.toSessionRepresentation(),
fragment,
Expand Down

0 comments on commit 80894dc

Please sign in to comment.