Skip to content

Commit 57af7c2

Browse files
committed
Address review comment.
1 parent 7f72ec9 commit 57af7c2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/symbolize/gimli/elf.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -468,16 +468,10 @@ pub(super) fn handle_split_dwarf<'data>(
468468

469469
let mut path = PathBuf::new();
470470
if let Some(p) = load.comp_dir.as_ref() {
471-
if let Ok(p) = convert_path(p) {
472-
path.push(p);
473-
}
471+
path.push(convert_path(p).ok()?);
474472
}
475473

476-
if let Some(p) = load.path.as_ref() {
477-
if let Ok(p) = convert_path(p) {
478-
path.push(p);
479-
}
480-
}
474+
path.push(convert_path(load.path.as_ref()?).ok()?);
481475

482476
if let Some(map_dwo) = super::mmap(&path) {
483477
let map_dwo = stash.cache_mmap(map_dwo);

0 commit comments

Comments
 (0)