Skip to content

Commit cfe978e

Browse files
authored
Clarify fallback behavior for enterprise updates
Added comment to clarify behavior when no enterprise update is available. Signed-off-by: Rello <Rello@users.noreply.github.com>
1 parent bfa21ef commit cfe978e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private function getUpdateVersion() : array {
115115
if (version_compare($this->version, $enterprise['version']) === -1 || $isMacOs) {
116116
return $enterprise;
117117
}
118-
return [];
118+
return []; // do not fall back to stable in case there is no enterprise update
119119
}
120120

121121
if (version_compare($this->version, $stable['version']) == -1 || $isMacOs) {

0 commit comments

Comments
 (0)