Skip to content

Commit

Permalink
fix minor
Browse files Browse the repository at this point in the history
  • Loading branch information
kuaukutsu committed Dec 16, 2023
1 parent d7b49a6 commit 0d986e7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/service/TaskViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ public function get(string $taskUuid): TaskView

try {
$state = $this->prepareState($task->state);
$relation = $this->prepareRelation($state);
} catch (Throwable) {
$state = null;
$relation = null;
}

$relation = null;
if ($state !== null) {
$relation = $this->prepareRelation($state);
}

return new TaskView(
Expand Down

0 comments on commit 0d986e7

Please sign in to comment.