Skip to content

Commit

Permalink
Remove unnecessary null check
Browse files Browse the repository at this point in the history
  • Loading branch information
arhimondr committed Sep 7, 2022
1 parent 8259b5c commit ae4afb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions core/trino-main/src/main/java/io/trino/execution/SqlTask.java
Original file line number Diff line number Diff line change
Expand Up @@ -451,10 +451,8 @@ public TaskInfo updateTask(
}
}

if (taskExecution != null) {
taskExecution.addSplitAssignments(splitAssignments);
taskExecution.getTaskContext().addDynamicFilter(dynamicFilterDomains);
}
taskExecution.addSplitAssignments(splitAssignments);
taskExecution.getTaskContext().addDynamicFilter(dynamicFilterDomains);
}
catch (Error e) {
failed(e);
Expand Down

0 comments on commit ae4afb0

Please sign in to comment.