mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-27 12:08:51 +03:00
Simplify Scope.elm
This commit is contained in:
parent
dbf56e1e65
commit
21323cbdc3
@ -122,17 +122,6 @@ addVisitors setterGetter schema =
|
||||
|> setterGetter.get
|
||||
|> unbox
|
||||
|> popScope visitedElement direction
|
||||
in
|
||||
( [], setterGetter.set (Context innerContext) outerContext )
|
||||
)
|
||||
|> Rule.withExpressionVisitor
|
||||
(\visitedElement direction outerContext ->
|
||||
let
|
||||
innerContext : InnerContext
|
||||
innerContext =
|
||||
outerContext
|
||||
|> setterGetter.get
|
||||
|> unbox
|
||||
|> expressionVisitor visitedElement direction
|
||||
in
|
||||
( [], setterGetter.set (Context innerContext) outerContext )
|
||||
|
Loading…
Reference in New Issue
Block a user