Skip to content

Commit

Permalink
Fix linting offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
aurelien-reeves-scalingo committed Nov 19, 2024
1 parent 41b5b83 commit aa836f4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vscode/src/ruby/rbenv.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ export class Rbenv extends VersionManager {
return this.ensureRbenvExistsAt(configuredRbenvPath);
} else {
return this.findExec(
[vscode.Uri.file("/opt/homebrew/bin"), vscode.Uri.file("/usr/local/bin")],
[
vscode.Uri.file("/opt/homebrew/bin"),
vscode.Uri.file("/usr/local/bin"),
],
"rbenv",
);
}
Expand All @@ -42,11 +45,11 @@ export class Rbenv extends VersionManager {
try {
await vscode.workspace.fs.stat(vscode.Uri.file(path));

return path
return path;
} catch (error: any) {
throw new Error(
`The Ruby LSP version manager is configured to be rbenv, but ${path} does not exist`,
)
);
}
}
}

0 comments on commit aa836f4

Please sign in to comment.