Skip to content

Commit 3a40b24

Browse files
committed
refactor(dist): use let-else in dl_v2_manifest()
1 parent a418f35 commit 3a40b24

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/dist/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1153,9 +1153,7 @@ pub(crate) async fn dl_v2_manifest(
11531153
{
11541154
Ok(manifest_dl) => {
11551155
// Downloaded ok!
1156-
let (manifest_file, manifest_hash) = if let Some(m) = manifest_dl {
1157-
m
1158-
} else {
1156+
let Some((manifest_file, manifest_hash)) = manifest_dl else {
11591157
return Ok(None);
11601158
};
11611159
let manifest_str = utils::read_file("manifest", &manifest_file)?;

0 commit comments

Comments
 (0)