Skip to content

Commit 4104fe7

Browse files
committed
Use early return
1 parent 0eb736f commit 4104fe7

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/SecurityAlertIssue.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,12 @@ public function __construct(array $data)
9898

9999
$labels = \getenv('JIRA_ISSUE_LABELS');
100100

101-
if ($labels) {
102-
foreach (\explode(',', $labels) as $label) {
103-
$this->setKeyLabel($label);
104-
}
101+
if (!$labels) {
102+
return;
103+
}
104+
105+
foreach (\explode(',', $labels) as $label) {
106+
$this->setKeyLabel($label);
105107
}
106108
}
107109

0 commit comments

Comments
 (0)