Skip to content

Commit

Permalink
remove redundant syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDyre committed Feb 18, 2025
1 parent 7f258f4 commit e6b743c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/language/syntax.rs
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,7 @@ impl SyntaxCounter {
// `Some(true)` in order to respect the current configuration.
#[allow(clippy::if_same_then_else)]
if self.quote.is_some() {
if self.quote_is_doc_quote && config.treat_doc_strings_as_comments == Some(true) {
self.quote.map_or(false, |q| line.starts_with(q.as_bytes()))
|| (self.quote.is_some())
} else {
false
}
self.quote_is_doc_quote && config.treat_doc_strings_as_comments == Some(true)
} else if self
.shared
.doc_quotes
Expand Down

0 comments on commit e6b743c

Please sign in to comment.