Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/shortcuts.rs')
-rw-r--r--crates/parser/src/shortcuts.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/parser/src/shortcuts.rs b/crates/parser/src/shortcuts.rs
index e2baec890c..d5e513933f 100644
--- a/crates/parser/src/shortcuts.rs
+++ b/crates/parser/src/shortcuts.rs
@@ -252,10 +252,10 @@ fn n_attached_trivias<'a>(
WHITESPACE if text.contains("\n\n") => {
// we check whether the next token is a doc-comment
// and skip the whitespace in this case
- if let Some((COMMENT, peek_text)) = trivias.peek().map(|(_, pair)| pair) {
- if is_outer(peek_text) {
- continue;
- }
+ if let Some((COMMENT, peek_text)) = trivias.peek().map(|(_, pair)| pair)
+ && is_outer(peek_text)
+ {
+ continue;
}
break;
}