Skip to content

Commit

Permalink
Fix eslint complaints in build.js
Browse files Browse the repository at this point in the history
  • Loading branch information
andriijas committed Oct 24, 2019
1 parent a351750 commit 05dd1e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-scripts/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ function build(previousFileSizes) {
let errMessage = err.message;

// Add additional information for postcss errors
if (err.hasOwnProperty('postcssNode')) {
if (Object.prototype.hasOwnProperty.call(err, 'postcssNode')) {
errMessage +=
'\nCompileError: Begins at CSS selector ' +
err['postcssNode'].selector;
Expand Down

0 comments on commit 05dd1e5

Please sign in to comment.