Skip to content

Commit 34ae046

Browse files
committed
1 parent 8c3557e commit 34ae046

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/utils/callers.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ impl CurrentCaller {
5252
.ok_or_else(|| anyhow!("Failed to determine parent process path"))?;
5353
info!("Parent process path: {}", ppath.to_string_lossy());
5454
let canonical_ppath = ppath.canonicalize();
55-
if canonical_ppath.is_ok() {
56-
info!(
57-
"Canonical parent process path: {}",
58-
canonical_ppath.as_ref().unwrap().to_string_lossy()
59-
);
55+
if let Ok(p) = &canonical_ppath {
56+
info!("Canonical parent process path: {}", p.to_string_lossy());
6057
} else {
6158
warn!("Failed to determine canonical parent process path");
6259
}

0 commit comments

Comments
 (0)