Skip to content

Commit

Permalink
Whoops I left in debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Apr 1, 2024
1 parent dfb1314 commit ff00100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/discord_bot/js_messages.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ fn is_valid_js(text: &str) -> bool {
SyntaxKind::LITERAL | SyntaxKind::REGEX | SyntaxKind::IDENT | SyntaxKind::TEMPLATE => {
return false
}
SyntaxKind::EXPR_STMT => match dbg!(first_child
SyntaxKind::EXPR_STMT => match first_child
.first_child()
.map(|grandchild| grandchild.kind()))
.map(|grandchild| grandchild.kind())
{
Some(SyntaxKind::LITERAL)
| Some(SyntaxKind::REGEX)
Expand Down

0 comments on commit ff00100

Please sign in to comment.