Skip to content

Commit f429fe6

Browse files
committed
Fix clippy
1 parent 487c6d6 commit f429fe6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/local_config.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub fn config(opt: &Options) -> Result<bool> {
2424

2525
let mut multi_select = MultiSelect::new();
2626

27-
return if opt.local_config.exists() {
27+
if opt.local_config.exists() {
2828
debug!(
2929
"Local configuration file found at {}",
3030
opt.local_config.display()
@@ -60,7 +60,6 @@ pub fn config(opt: &Options) -> Result<bool> {
6060
println!("Aborting.");
6161
}
6262
}
63-
Ok(false)
6463
} else {
6564
debug!(
6665
"No local configuration file found at {}",
@@ -104,8 +103,9 @@ pub fn config(opt: &Options) -> Result<bool> {
104103
println!("Aborting.");
105104
}
106105
}
107-
Ok(false)
108106
};
107+
108+
Ok(false)
109109
}
110110

111111
fn format_package(package_name: &String, dependencies: &Vec<String>) -> String {

0 commit comments

Comments
 (0)