🔨 chore: format

This commit is contained in:
Pauline 2024-07-29 22:11:56 +02:00
parent ef729dd8e5
commit 5c62379ad3
No known key found for this signature in database
GPG key ID: 722BB181973296AE

View file

@ -155,15 +155,10 @@ pub async fn install_zipped_mrpack_files(
let package_path = pack.path.to_string();
let path = std::path::Path::new(&package_path).components().next();
if let Some(path) = path {
match path {
Component::CurDir | Component::Normal(_) => {
let path = cluster_path.full_path().await?.join(&package_path);
write(&path, &file, &state.io_semaphore).await?;
}
_ => {}
};
}
if let Some(Component::CurDir | Component::Normal(_)) = path {
let path = cluster_path.full_path().await?.join(&package_path);
write(&path, &file, &state.io_semaphore).await?;
};
Ok(())
}
},