From 5c62379ad359b9c19e0bbd31712be8161198c9e8 Mon Sep 17 00:00:00 2001 From: Pauline Date: Mon, 29 Jul 2024 22:11:56 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20chore:=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/core/src/api/package/mrpack.rs | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/packages/core/src/api/package/mrpack.rs b/packages/core/src/api/package/mrpack.rs index 1cec34b7..e473fa94 100644 --- a/packages/core/src/api/package/mrpack.rs +++ b/packages/core/src/api/package/mrpack.rs @@ -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(()) } },