on master help sign in
Improve indentation a bit
commitaf8047cf97b7cf2970564ffb1d576c63150af3c6 authorEvan Czaplicki <info@elm-lang.org> dateSat 28 Feb 2015, 13:55 (12 years ago) parent09d86de
1 file changed+4−2
src/Generate/JavaScript.hs+4−2
src/Generate/JavaScript.hs+4−2
@@ -171,8 +171,10 @@ expression (A region expr) =
171171 case last branches of
172172 (A _ (Var (Var.Canonical (Var.Module ["Basics"]) "otherwise")), _) ->
173173 safeIfs branches'
174− (A _ (Literal (Boolean True)), _) -> safeIfs branches'
175− _ -> ifs branches' (throw "badIf" region)
174+ (A _ (Literal (Boolean True)), _) ->
175+ safeIfs branches'
176+ _ ->
177+ ifs branches' (throw "badIf" region)
176178 where
177179 safeIfs branches = ifs (init branches) (snd (last branches))
178180 ifs branches finally = foldr iff finally branches