Skip to content

Commit 8248ef7

Browse files
romtsnclaude
andcommitted
ref(proguard): Mark unreachable Proguard branch in get_problem()
Since is_usable() now always returns true for Proguard mappings, the Proguard arm in get_problem() is dead code. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 7a41802 commit 8248ef7

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

src/utils/dif.rs

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -385,19 +385,13 @@ impl<'a> DifFile<'a> {
385385
}
386386

387387
pub fn get_problem(&self) -> Option<&'static str> {
388-
if self.is_usable() {
389-
None
390-
} else {
391-
Some(match self {
392-
DifFile::Archive(..) => {
393-
if !self.has_ids() {
394-
"missing debug identifier, likely stripped"
395-
} else {
396-
"missing debug or unwind information"
397-
}
398-
}
399-
DifFile::Proguard(..) => "missing line information",
400-
})
388+
match self {
389+
DifFile::Archive(..) if !self.is_usable() => Some(if !self.has_ids() {
390+
"missing debug identifier, likely stripped"
391+
} else {
392+
"missing debug or unwind information"
393+
}),
394+
_ => None,
401395
}
402396
}
403397

0 commit comments

Comments
 (0)