Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jenil94 committed Aug 17, 2019
1 parent e427eea commit 8ed122e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/require-optimization.js
Expand Up @@ -168,7 +168,7 @@ module.exports = {
ArrowFunctionExpression(node) {
// Skip if the function is declared in the class
if (isFunctionInClass()) {
return true;
return;
}
// Stateless Functional Components cannot be optimized (yet)
markSCUAsDeclared(node);
Expand Down

0 comments on commit 8ed122e

Please sign in to comment.