Skip to content

Commit 946e520

Browse files
romtsnclaude
andcommitted
ref(proguard): Keep is_usable() early return in get_problem()
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 0acc3a9 commit 946e520

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/utils/dif.rs

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

387387
pub fn get_problem(&self) -> Option<&'static str> {
388+
if self.is_usable() {
389+
return None;
390+
}
391+
388392
match self {
389-
DifFile::Archive(..) if !self.is_usable() => Some(if !self.has_ids() {
393+
DifFile::Archive(..) => Some(if !self.has_ids() {
390394
"missing debug identifier, likely stripped"
391395
} else {
392396
"missing debug or unwind information"
393397
}),
394-
DifFile::Archive(..) | DifFile::Proguard(..) => None,
398+
DifFile::Proguard(..) => None,
395399
}
396400
}
397401

0 commit comments

Comments
 (0)