Skip to content

Commit

Permalink
chore: restore-jsx.spec.ts lint (#8004)
Browse files Browse the repository at this point in the history
  • Loading branch information
poyoho committed May 3, 2022
1 parent 749e96f commit f1af941
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-react/src/jsx-runtime/restore-jsx.spec.ts
Expand Up @@ -3,7 +3,7 @@ import * as babel from '@babel/core'

async function jsx(sourceCode: string) {
const [ast] = await restoreJSX(babel, sourceCode, 'test.js')
if (ast === null) {
if (ast == null) {
return ast
}
const { code } = await babel.transformFromAstAsync(ast, null, {
Expand Down

0 comments on commit f1af941

Please sign in to comment.