Skip to content

Commit

Permalink
Add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
TimOrme committed Apr 8, 2023
1 parent 81987c9 commit dacb105
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions elm/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,8 @@ getLastListItem myList =
{ time = 0, epa = 0, pm25 = 0, pm10 = 0 }


{-| Convert HTTP error to a string.
-}
errorToString : Http.Error -> String
errorToString error =
case error of
Expand All @@ -379,6 +381,8 @@ errorToString error =
errorMessage


{-| Conditionally display some block of HTML
-}
htmlIf : Html msg -> Bool -> Html msg
htmlIf el cond =
if cond then
Expand Down

0 comments on commit dacb105

Please sign in to comment.