Skip to content
This repository was archived by the owner on Nov 18, 2022. It is now read-only.

Commit 2a5ab78

Browse files
committed
remove defensive programming (as it's already being defended against)
1 parent 60312e3 commit 2a5ab78

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/workspace_util.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,6 @@ export function nearestParentWorkspace(
1010
filePath: string,
1111
): WorkspaceFolder {
1212

13-
14-
if (!curWorkspace) {
15-
return curWorkspace;
16-
}
17-
1813
const workspaceRoot = path.parse(curWorkspace.uri.fsPath).dir;
1914
const rootManifest = path.join(workspaceRoot, 'Cargo.toml');
2015
if (fs.existsSync(rootManifest)) {

0 commit comments

Comments
 (0)