Skip to content

Commit b3b7d5c

Browse files
committed
fix: 修复 NodeVersionHome 的 bin_dir 方法在 Windows 上的返回值
- 更新 `bin_dir` 方法,使其在 Windows 系统上返回目录路径而不是拼接的 "bin" 子目录。 - 确保代码整洁性和可读性,保持功能一致性。
1 parent 5931d8d commit b3b7d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/node/src/node_version_home.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ impl NodeVersionHome {
1515
pub fn bin_dir(&self) -> PathBuf {
1616
let dir = &self.0;
1717
if cfg!(windows) {
18-
dir.join("bin")
18+
dir.to_owned()
1919
} else {
2020
dir.join("bin")
2121
}

0 commit comments

Comments
 (0)