mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-12-23 09:42:49 +03:00
Simplify FileParser.parse
This commit is contained in:
parent
f9e1d8aef8
commit
bf3f9b1469
@ -10,10 +10,12 @@ import Review.Dependencies
|
|||||||
-}
|
-}
|
||||||
parse : String -> Result () File
|
parse : String -> Result () File
|
||||||
parse source =
|
parse source =
|
||||||
source
|
case Parser.parse source of
|
||||||
|> Parser.parse
|
Ok file ->
|
||||||
|> Result.mapError (always ())
|
Ok (Elm.Processing.process elmProcessContext file)
|
||||||
|> Result.map (Elm.Processing.process elmProcessContext)
|
|
||||||
|
Err _ ->
|
||||||
|
Err ()
|
||||||
|
|
||||||
|
|
||||||
elmProcessContext : Elm.Processing.ProcessContext
|
elmProcessContext : Elm.Processing.ProcessContext
|
||||||
|
Loading…
Reference in New Issue
Block a user