diff --git a/buildtools/changelog.php b/buildtools/changelog.php index aa945fe7d0..f6bb57d378 100755 --- a/buildtools/changelog.php +++ b/buildtools/changelog.php @@ -94,10 +94,9 @@ function add_change(string $change, string $category, string $scope = null) { $catgroup[$category][$scope] = []; } $catgroup[$category][$scope][] = $change; + return; } - else { - $catgroup[$category][] = $change; - } + $catgroup[$category][] = $change; } foreach ($changelog as $change) {