mirror of
https://github.com/pesde-pkg/pesde.git
synced 2024-12-12 11:00:36 +00:00
fix: remove unwrap
This commit is contained in:
parent
8168bb5124
commit
fd69ced633
1 changed files with 5 additions and 1 deletions
|
@ -75,7 +75,11 @@ fn run() -> anyhow::Result<()> {
|
|||
break 'finder project_root;
|
||||
}
|
||||
|
||||
project_root = project_root.parent().unwrap().to_path_buf();
|
||||
if let Some(parent) = project_root.parent() {
|
||||
project_root = parent.to_path_buf();
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
cwd.clone()
|
||||
|
|
Loading…
Reference in a new issue