Skip to content

Commit

Permalink
Add missing return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab committed Aug 28, 2023
1 parent 02f273b commit 0280452
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 0280452

Please sign in to comment.