Skip to content

Commit

Permalink
fix flow errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jul 6, 2021
1 parent c7f28bc commit c8ac98a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/comments.js
Expand Up @@ -50,7 +50,7 @@ function setTrailingComments(node: Node, comments: Array<Comment>) {
* @param {Node} node
* @param {Array<Comment>} comments
*/
export function setInnerComments(node: Node, comments: Array<Comment>) {
export function setInnerComments(node: Node, comments: Array<Comment> | void) {
if (node.innerComments === undefined) {
node.innerComments = comments;
} else if (comments !== undefined) {
Expand Down

0 comments on commit c8ac98a

Please sign in to comment.