Skip to content

Commit 26c73de

Browse files
brettdhljharb
authored andcommitted
Convert value-return arrow function to explicit-return
1 parent 8cc1aa8 commit 26c73de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/rules/no-typos.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ module.exports = {
7777
} else if (callee.type === 'MemberExpression' && callee.property.name === 'oneOfType') {
7878
const args = node.arguments[0];
7979
if (args && args.type === 'ArrayExpression') {
80-
args.elements.forEach(el => checkValidProp(el));
80+
args.elements.forEach(el => {
81+
checkValidProp(el);
82+
});
8183
}
8284
}
8385
}

0 commit comments

Comments
 (0)