Skip to content

Commit 11ea4f0

Browse files
Potential fix for pull request finding 'Useless null check'
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
1 parent ad7937e commit 11ea4f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/main/java/com/microsoft/durabletask/DurableTaskGrpcWorker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ public void startAndBlock() {
220220

221221
// Use the ExecutionStartedEvent timestamp as the orchestration span start time
222222
Instant spanStartTime = null;
223-
if (startedHistoryEvent != null && startedHistoryEvent.hasTimestamp()) {
223+
if (startedHistoryEvent.hasTimestamp()) {
224224
spanStartTime = DataConverter.getInstantFromTimestamp(
225225
startedHistoryEvent.getTimestamp());
226226
}

0 commit comments

Comments
 (0)