We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.is_some
language::syntax
tokei/src/language/syntax.rs
Lines 334 to 343 in edbd5d5
This code feels like either it can be vastly simplified or it is a typo.
self.quote.map_or(false, |q| line.starts_with(q.as_bytes())) || (self.quote.is_some())
is
self.quote.is_some_and(|q| line.starts_with(q.as_bytes())) || (self.quote.is_some())
which is just
self.quote.is_some()
which is true because of the line 336.
true
So we have
if self.quote_is_doc_quote && config.treat_doc_strings_as_comments == Some(true) { true } else { false }
self.quote_is_doc_quote && config.treat_doc_strings_as_comments == Some(true)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
tokei/src/language/syntax.rs
Lines 334 to 343 in edbd5d5
This code feels like either it can be vastly simplified or it is a typo.
is
which is just
which is
true
because of the line 336.So we have
which is just
The text was updated successfully, but these errors were encountered: