forked from NagiosEnterprises/nagioscore
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
downtime: Refactor delete_downtime()
The only error condition we can run into is when we don't find the downtime we're supposed to delete, so return ERROR immediately if that happens and avoid some unnecessary indentation and a (very) long if() clause. Signed-off-by: Andreas Ericsson <ae@op5.se>
- Loading branch information
Showing
1 changed file
with
21 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters