Skip to content

Commit 96a237e

Browse files
committed
nits
1 parent bfc9056 commit 96a237e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

crates/ruff_server/src/fix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub(crate) fn fix_all(
5555
};
5656

5757
let SourceType::Python(source_type) = query.source_type() else {
58-
return Ok(Fixes::default()); // todo?
58+
return Ok(Fixes::default());
5959
};
6060

6161
// We need to iteratively apply all safe fixes onto a single file and then

crates/ruff_server/src/resolve.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn is_document_excluded(
7474
tracing::debug!("Included path via Python language ID: {}", path.display());
7575
false
7676
} else if let Some(LanguageId::Markdown) = language_id
77-
&& let Some(_) = formatter_settings
77+
&& formatter_settings.is_some()
7878
{
7979
tracing::debug!("Included path via Markdown language ID: {}", path.display());
8080
false

0 commit comments

Comments
 (0)