Skip to content

Commit

Permalink
Convert value-return arrow function to explicit-return
Browse files Browse the repository at this point in the history
  • Loading branch information
brettdh authored and ljharb committed Feb 21, 2018
1 parent 8cc1aa8 commit 26c73de
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/rules/no-typos.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,9 @@ module.exports = {
} else if (callee.type === 'MemberExpression' && callee.property.name === 'oneOfType') {
const args = node.arguments[0];
if (args && args.type === 'ArrayExpression') {
args.elements.forEach(el => checkValidProp(el));
args.elements.forEach(el => {
checkValidProp(el);
});
}
}
}
Expand Down

0 comments on commit 26c73de

Please sign in to comment.