Lint
This commit is contained in:
1 parent
99fc9f608e
commit
e43da1b9e8
25 files changed
+110
-135
No files matched your search
+4
-4
@@ -59,10 +59,10 @@ fn find_nearby_launch_script() -> Option<PathBuf> {
|
||||
}
|
||||
|
||||
for candidate in candidates {
|
||||
if candidate.try_exists().is_ok_and(|exists| exists) {
|
||||
if let Some(Ok(candidate)) = candidate.parent().map(Path::canonicalize) {
|
||||
return Some(candidate);
|
||||
}
|
||||
if candidate.try_exists().is_ok_and(|exists| exists)
|
||||
&& let Some(Ok(candidate)) = candidate.parent().map(Path::canonicalize)
|
||||
{
|
||||
return Some(candidate);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user