未验证 提交 4f8538ac 编写于 作者: L Logan Ramos 提交者: GitHub

Clean up if statements (#78218)

上级 da0ea79e
......@@ -148,9 +148,9 @@ export function getCwd(
return customCwd;
}
}
if (path.isAbsolute(customCwd) && !cwd) {
if (path.isAbsolute(customCwd)) {
cwd = customCwd;
} else if (root && !cwd) {
} else if (root) {
cwd = path.join(root.fsPath, customCwd);
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册