Skip to content

Commit 336ca34

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
fix clippy
1 parent 08f19a9 commit 336ca34

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

osinfo/src/main.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@ mod config;
55

66
fn main() {
77
let args: Vec<String> = std::env::args().collect();
8-
let include_name = if args.len() > 1 && args[1] == "export" {
9-
true
10-
} else {
11-
false
12-
};
8+
let include_name = args.len() > 1 && args[1] == "export";
139
let json = serde_json::to_string(&config::OsInfo::new(include_name)).unwrap();
1410
println!("{json}");
1511
}

0 commit comments

Comments
 (0)