Skip to content

Commit

Permalink
chore(hooks_memoized_consideration_rule.dart): unneeded lines
Browse files Browse the repository at this point in the history
  • Loading branch information
nikaera committed Feb 27, 2024
1 parent 851878c commit 5e7f26b
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class HooksMemoizedConsiderationRule extends DartLintRule {
classNode.visitChildren(
HooksMethodVisitor(
onVisitMethodInvocation: (node) {
if (node.methodName.name == 'useMemoized') {
return;
}

final ancestor =
node.parent?.thisOrAncestorOfType<MethodInvocation>();
if (ancestor?.methodName.name == 'useMemoized') {
Expand Down

0 comments on commit 5e7f26b

Please sign in to comment.