Skip to content

Commit

Permalink
Add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and sukhwinder33445 committed Aug 28, 2023
1 parent c263b72 commit 5ad8f75
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/Icingadb/Widget/ItemList/StateListItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ protected function createTimestamp(): ?BaseHtmlElement
} elseif ($this->state->last_state_change !== null && $this->state->last_state_change->getTimestamp() > 0) {
return new TimeSince($this->state->last_state_change->getTimestamp());
}

return null;
}

protected function assemble()
Expand Down

0 comments on commit 5ad8f75

Please sign in to comment.