Skip to content

Commit 5dcce86

Browse files
more let chains!
1 parent 0ee4c61 commit 5dcce86

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/symbolize/gimli/macho.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ impl Mapping {
3434
// contains and try to find a macho file which has a matching UUID as
3535
// the one of our own file. If we find a match that's the dwarf file we
3636
// want to return.
37-
if let Some(uuid) = uuid {
38-
if let Some(parent) = path.parent() {
39-
if let Some(mapping) = Mapping::load_dsym(parent, uuid) {
40-
return Some(mapping);
41-
}
42-
}
37+
if let Some(uuid) = uuid
38+
&& let Some(parent) = path.parent()
39+
&& let Some(mapping) = Mapping::load_dsym(parent, uuid)
40+
{
41+
return Some(mapping);
4342
}
4443

4544
// Looks like nothing matched our UUID, so let's at least return our own

0 commit comments

Comments
 (0)