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
|
@ -102,21 +102,16 @@ pub fn init(cx: &mut App) {
|
|||
|
||||
let editor_handle = cx.entity().downgrade();
|
||||
|
||||
if let Some(language) = language {
|
||||
if language.name() == "Python".into() {
|
||||
if let (Some(project_path), Some(project)) = (project_path, project) {
|
||||
let store = ReplStore::global(cx);
|
||||
store.update(cx, |store, cx| {
|
||||
store
|
||||
.refresh_python_kernelspecs(
|
||||
project_path.worktree_id,
|
||||
&project,
|
||||
cx,
|
||||
)
|
||||
.detach_and_log_err(cx);
|
||||
});
|
||||
}
|
||||
}
|
||||
if let Some(language) = language
|
||||
&& language.name() == "Python".into()
|
||||
&& let (Some(project_path), Some(project)) = (project_path, project)
|
||||
{
|
||||
let store = ReplStore::global(cx);
|
||||
store.update(cx, |store, cx| {
|
||||
store
|
||||
.refresh_python_kernelspecs(project_path.worktree_id, &project, cx)
|
||||
.detach_and_log_err(cx);
|
||||
});
|
||||
}
|
||||
|
||||
editor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue