Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
rouzwelt committed Jan 9, 2025
1 parent 0a598c4 commit 2ea857e
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/macro-support/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1140,10 +1140,7 @@ fn function_from_decl(
r#type: replace_self(*ty),
ty_override: ty_override.as_ref().map_or(Ok(None), |(ty, span)| {
if is_js_keyword(ty) {
return Err(Diagnostic::span_error(
*span,
"collides with js/ts keyword",
));
return Err(Diagnostic::span_error(*span, "collides with js/ts keyword"));
}
if contains_js_comment_close(ty) {
return Err(Diagnostic::span_error(
Expand Down

0 comments on commit 2ea857e

Please sign in to comment.