We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8c3557e commit 34ae046Copy full SHA for 34ae046
1 file changed
src/utils/callers.rs
@@ -52,11 +52,8 @@ impl CurrentCaller {
52
.ok_or_else(|| anyhow!("Failed to determine parent process path"))?;
53
info!("Parent process path: {}", ppath.to_string_lossy());
54
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
- );
+ if let Ok(p) = &canonical_ppath {
+ info!("Canonical parent process path: {}", p.to_string_lossy());
60
} else {
61
warn!("Failed to determine canonical parent process path");
62
}
0 commit comments