Skip to content

Commit b193a61

Browse files
committed
chore: fix code style
1 parent 693e9f3 commit b193a61

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,7 @@ fn main() -> Result<(), Box<dyn Error>> {
7676
env::var("TARGET").unwrap()
7777
);
7878

79-
// 始终尝试获取 git 信息,失败时使用默认值
80-
if let Err(_) = fetch_git_info() {
79+
if fetch_git_info().is_err() {
8180
let cargo_version = env!("CARGO_PKG_VERSION");
8281
println!("cargo:rustc-env=OTREE_VERSION={cargo_version}");
8382
println!("cargo:rustc-env=OTREE_BUILD_TYPE=stable");

0 commit comments

Comments
 (0)