Skip to content

Commit

Permalink
[CodeFactor] Apply fixes (#2979)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgoonz authored Aug 16, 2022
2 parents 7b8d285 + 98f4330 commit 7af9e88
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions plugins/gatsby-remark-page-creator/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ function findFileNode({node, getNode}) {
console.log('did not find ancestor File node');
return null;
}

return fileNode
return fileNode;
}

exports.onCreateNode = ({node, getNode, actions}, options) => {
Expand Down
4 changes: 2 additions & 2 deletions plugins/gatsby-source-data/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ exports.sourceNodes = (props, pluginOptions = {}) => {
}

if (!path.isAbsolute(pluginOptions.path)) {
pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path)
pluginOptions.path = path.resolve(process.cwd(), pluginOptions.path);
}

reporter.info(`[gatsby-source-data] setup file watcher and create site data`);
Expand Down Expand Up @@ -118,6 +118,6 @@ function convertDataFilesToJSON(dataFiles, dataDirPath, reporter) {
});
});
return Promise.all(promises).then(results => {
return _.reduce(results, (data, res) => _.merge(data, res), {})
return _.reduce(results, (data, res) => _.merge(data, res), {});
});
}

1 comment on commit 7af9e88

@vercel
Copy link

@vercel vercel bot commented on 7af9e88 Aug 16, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deployment failed with the following error:

Resource is limited - try again in 16 hours (more than 100, code: "api-deployments-free-per-day").

Please sign in to comment.