Skip to content

Commit

Permalink
Fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jfrolich committed Jan 7, 2020
1 parent 9efb376 commit 59508bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-plugin-remove-graphql-queries/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export default function({ types: t }) {
})

function followVariableDeclarations(binding) {
const node = binding.path ? binding.path.node : undefined
const node = binding.path?.node
if (
node &&
node.type === `VariableDeclarator` &&
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/query/file-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ async function findGraphQLTags(
}

function followVariableDeclarations(binding) {
const node = binding.path ? binding.path.node : undefined
const node = binding.path?.node
if (
node &&
node.type === `VariableDeclarator` &&
Expand Down

0 comments on commit 59508bd

Please sign in to comment.