Skip to content

Commit 740f9c9

Browse files
committed
refactor: remove unwrap(), try result instead
1 parent 645303e commit 740f9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/pop-cli/src/common/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ pub(crate) fn get_mock_runtime(feature: Option<RuntimeFeature>) -> PathBuf {
208208
_ => "base_parachain",
209209
}
210210
);
211-
std::env::current_dir().unwrap().join(path).canonicalize().unwrap()
211+
std::env::current_dir()?.join(path).canonicalize()?
212212
}
213213

214214
#[cfg(test)]

0 commit comments

Comments
 (0)