Skip to content

Commit

Permalink
Update Main.elm
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-haskell authored Jun 14, 2023
1 parent 5f19962 commit 7fa0900
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/features/html-to-elm/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ init html =
)



fromHtmlToElm : String -> Result String String
fromHtmlToElm : String -> Maybe String
fromHtmlToElm html =
case
html
Expand All @@ -49,10 +48,10 @@ fromHtmlToElm html =
|> Result.map toElmString
of
Ok elmCode ->
Ok elmCode
Just elmCode

Err problem ->
Err (Debug.toString problem)
Nothing


toElmString : List Html.Parser.Node -> String
Expand Down

0 comments on commit 7fa0900

Please sign in to comment.