Auto-fix clippy::collapsible_if violations (#36428)
Release Notes: - N/A
This commit is contained in:
parent
9e8ec72bd5
commit
8f567383e4
281 changed files with 6628 additions and 7089 deletions
|
@ -285,11 +285,11 @@ pub fn open_docs(editor: &mut Editor, _: &OpenDocs, window: &mut Window, cx: &mu
|
|||
workspace.update(cx, |_workspace, cx| {
|
||||
// Check if the local document exists, otherwise fallback to the online document.
|
||||
// Open with the default browser.
|
||||
if let Some(local_url) = docs_urls.local {
|
||||
if fs::metadata(Path::new(&local_url[8..])).is_ok() {
|
||||
cx.open_url(&local_url);
|
||||
return;
|
||||
}
|
||||
if let Some(local_url) = docs_urls.local
|
||||
&& fs::metadata(Path::new(&local_url[8..])).is_ok()
|
||||
{
|
||||
cx.open_url(&local_url);
|
||||
return;
|
||||
}
|
||||
|
||||
if let Some(web_url) = docs_urls.web {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue