Skip to content

Commit

Permalink
format-code
Browse files Browse the repository at this point in the history
  • Loading branch information
creampnx-x committed Sep 24, 2022
1 parent 783f8e2 commit 20f3c49
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions boa_engine/src/syntax/lexer/comment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,7 @@ impl<R> Tokenizer<R> for SingleLineComment {
while let Some(ch) = cursor.next_char()? {
let tried_ch = char::try_from(ch);
match tried_ch {
Ok(c) if c == '\r' || c == '\n' || c == '\u{2028}' || c == '\u{2029}' => {
break;
}
Ok(c) if c == '\r' || c == '\n' || c == '\u{2028}' || c == '\u{2029}' => break,
_ => {}
};
}
Expand Down

0 comments on commit 20f3c49

Please sign in to comment.