Skip to content

Commit 1a886fa

Browse files
committed
MC-38348: Make SVC and Infra changes
- Fix conditional logic
1 parent 113dcdf commit 1a886fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Reporter/HtmlPackageLevelChangesRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ private function getPackageChanges():array
180180
* @param array $results
181181
*/
182182
private function saveLevelOfChange(string $pkgName, int $level, array &$results) {
183-
if (isset($results[$pkgName]) && $level <= $results[$pkgName]) {
183+
if (!isset($results[$pkgName]) || $level > $results[$pkgName]) {
184184
$results[$pkgName] = $level;
185185
}
186186
}

0 commit comments

Comments
 (0)