mirror of
https://github.com/moghtech/komodo.git
synced 2026-05-04 23:09:34 -05:00
fix clippy lints re 1.89
This commit is contained in:
@@ -39,17 +39,16 @@ where
|
||||
};
|
||||
|
||||
// Ensure parent folder exists
|
||||
if let Some(parent) = res.path.parent() {
|
||||
if let Err(e) = tokio::fs::create_dir_all(parent)
|
||||
if let Some(parent) = res.path.parent()
|
||||
&& let Err(e) = tokio::fs::create_dir_all(parent)
|
||||
.await
|
||||
.context("Failed to create clone parent directory.")
|
||||
{
|
||||
res.logs.push(Log::error(
|
||||
"Prepare Repo Root",
|
||||
format_serror(&e.into()),
|
||||
));
|
||||
return Ok(res);
|
||||
}
|
||||
{
|
||||
res.logs.push(Log::error(
|
||||
"Prepare Repo Root",
|
||||
format_serror(&e.into()),
|
||||
));
|
||||
return Ok(res);
|
||||
}
|
||||
|
||||
match tokio::fs::remove_dir_all(&res.path).await {
|
||||
|
||||
Reference in New Issue
Block a user