Skip to content

Commit

Permalink
removed else to satisfy codeclimate checks
Browse files Browse the repository at this point in the history
  • Loading branch information
dword4 committed Nov 30, 2018
1 parent d40c3de commit b4607e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions LibreNMS/Alert/Transport/Gitlab.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,8 @@ public function deliverAlert($obj, $opts)
public function contactGitlab($obj, $opts)
{
// Don't create tickets for resolutions
if ($obj['state'] == 0) {
return true;
} else {
if ($obj['state'] != 0) {

$device = device_by_id_cache($obj['device_id']); // for event logging

$project_id = $opts['project-id'];
Expand Down

0 comments on commit b4607e4

Please sign in to comment.