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
|
@ -417,10 +417,10 @@ fn runnable_ranges(
|
|||
range: Range<Point>,
|
||||
cx: &mut App,
|
||||
) -> (Vec<Range<Point>>, Option<Point>) {
|
||||
if let Some(language) = buffer.language() {
|
||||
if language.name() == "Markdown".into() {
|
||||
return (markdown_code_blocks(buffer, range.clone(), cx), None);
|
||||
}
|
||||
if let Some(language) = buffer.language()
|
||||
&& language.name() == "Markdown".into()
|
||||
{
|
||||
return (markdown_code_blocks(buffer, range.clone(), cx), None);
|
||||
}
|
||||
|
||||
let (jupytext_snippets, next_cursor) = jupytext_cells(buffer, range.clone());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue