Skip to content

Commit

Permalink
Clippy report fix if can be collapsed
Browse files Browse the repository at this point in the history
  • Loading branch information
okynos committed Oct 11, 2024
1 parent 113dac9 commit 7619fea
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ fn get_template_path() -> String {
String::from(relative_path)
}else if Path::new(config_path).exists() {
String::from(config_path)
}else if utils::get_os() != "windows" {
format!("{}/{}", executable_path.clone().parent().unwrap().to_str().unwrap(), "index_template.json")
}else{
if utils::get_os() != "windows"{
format!("{}/{}", executable_path.clone().parent().unwrap().to_str().unwrap(), "index_template.json")
}else{
format!("{}\\{}", executable_path.clone().parent().unwrap().to_str().unwrap(), "index_template.json")
}
format!("{}\\{}", executable_path.clone().parent().unwrap().to_str().unwrap(), "index_template.json")
}
}

Expand Down

0 comments on commit 7619fea

Please sign in to comment.