We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08f19a9 commit 336ca34Copy full SHA for 336ca34
osinfo/src/main.rs
@@ -5,11 +5,7 @@ mod config;
5
6
fn main() {
7
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
- };
+ let include_name = args.len() > 1 && args[1] == "export";
13
let json = serde_json::to_string(&config::OsInfo::new(include_name)).unwrap();
14
println!("{json}");
15
}
0 commit comments