Skip to content

Commit 8e4166c

Browse files
committed
refactor: remove redundant Homebrew check from detectLegacyInstallationMethod
The Homebrew check in detectLegacyInstallationMethod was dead code since detectInstallationMethod already checks isHomebrewInstall() before calling the legacy function. It was also conceptually wrong — legacy detection is for pre-existing installs, and brew was never a supported method before this PR.
1 parent 68e987e commit 8e4166c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/lib/upgrade.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,11 +190,6 @@ function isHomebrewInstall(): boolean {
190190
* @returns Detected installation method, or "unknown" if unable to determine
191191
*/
192192
async function detectLegacyInstallationMethod(): Promise<InstallationMethod> {
193-
// Check for Homebrew Cellar path before curl — both may match known bin dirs
194-
if (isHomebrewInstall()) {
195-
return "brew";
196-
}
197-
198193
// Check known curl install paths
199194
for (const dir of KNOWN_CURL_PATHS) {
200195
if (process.execPath.startsWith(dir)) {

0 commit comments

Comments
 (0)