From 2f68b275ba4cbcd68cce1bbc4bcd7ccef89dcc86 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Wed, 27 Oct 2021 18:21:00 +0200 Subject: [PATCH] Re-use visitOnlyDeclaration --- src/Review/Rule.elm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Review/Rule.elm b/src/Review/Rule.elm index 234df10a..00932c35 100644 --- a/src/Review/Rule.elm +++ b/src/Review/Rule.elm @@ -4462,9 +4462,7 @@ visitDeclaration declarationVisitorsOnEnter declarationVisitorsOnExit expression |> visitWithListOfVisitors declarationVisitorsOnExit node _ -> - errorsAndContext - |> visitWithListOfVisitors declarationVisitorsOnEnter node - |> visitWithListOfVisitors declarationVisitorsOnExit node + visitOnlyDeclaration declarationVisitorsOnEnter declarationVisitorsOnExit node errorsAndContext visitOnlyDeclaration :