Skip to content

Commit

Permalink
[CodeFactor] Apply fixes
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
code-factor committed Aug 5, 2022
1 parent 7f9367c commit 722d832
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const siteMetadata = require( './site-metadata.json' )
const siteMetadata = require( './site-metadata.json' );
module.exports = {
pathPrefix: '/',
siteMetadata: siteMetadata,
Expand Down
2 changes: 1 addition & 1 deletion plugins/gatsby-remark-page-creator/gatsby-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,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) => {
const {createNodeField} = actions;
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 @@ -22,7 +22,7 @@ exports.sourceNodes = (props, pluginOptions = {}) => {
pluginOptions.path = 'src/data';
}
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`);
const dataPath = pluginOptions.path;
Expand Down Expand Up @@ -102,6 +102,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 722d832

@vercel
Copy link

@vercel vercel bot commented on 722d832 Aug 5, 2022

Choose a reason for hiding this comment

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

Please sign in to comment.