mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 17:53:35 +03:00
Use List.append instead of List.concat
This commit is contained in:
parent
6301df3fa8
commit
6f2bbfcd1c
@ -786,7 +786,9 @@ runRules rules project nodeContexts =
|
||||
( ruleErrors, ruleWithCache ) =
|
||||
ruleImplementation exceptions project nodeContexts
|
||||
in
|
||||
( List.concat [ List.map removeErrorPhantomType ruleErrors, errors ], ruleWithCache :: previousRules )
|
||||
( List.append (List.map removeErrorPhantomType ruleErrors) errors
|
||||
, ruleWithCache :: previousRules
|
||||
)
|
||||
)
|
||||
( [], [] )
|
||||
rules
|
||||
@ -4179,12 +4181,12 @@ visitExpression onEnter onExit node moduleContext =
|
||||
-}
|
||||
makeFinalEvaluation : List (context -> List (Error {})) -> ( List (Error {}), context ) -> List (Error {})
|
||||
makeFinalEvaluation finalEvaluationFns ( previousErrors, context ) =
|
||||
List.concat
|
||||
[ List.concatMap
|
||||
List.append
|
||||
(List.concatMap
|
||||
(\visitor -> visitor context)
|
||||
finalEvaluationFns
|
||||
, previousErrors
|
||||
]
|
||||
)
|
||||
previousErrors
|
||||
|
||||
|
||||
expressionChildren : Node Expression -> List (Node Expression)
|
||||
@ -5271,10 +5273,9 @@ registerImportExposed import_ innerContext =
|
||||
|
||||
exposedTypes : Dict String (List String)
|
||||
exposedTypes =
|
||||
List.concat
|
||||
[ List.map nameWithModuleName module_.unions
|
||||
, List.map nameWithModuleName module_.aliases
|
||||
]
|
||||
List.append
|
||||
(List.map nameWithModuleName module_.unions)
|
||||
(List.map nameWithModuleName module_.aliases)
|
||||
|> Dict.fromList
|
||||
in
|
||||
{ innerContext
|
||||
|
Loading…
Reference in New Issue
Block a user