Remove redundant do

This change prevents an hlint warning about a redundant do
generated for the case when parseJSON is invalid.
This commit is contained in:
Tristan Cacqueray 2021-02-10 23:21:24 +00:00
parent 97f1101592
commit 39114f2989

View File

@ -127,7 +127,7 @@ writeFromJSONInstance name struct = do
line $ do
tell $ "pure $ " <> name
when (not . HM.null $ struct) $ tell "{..}"
line $ tell $ "parseJSON invalid = do"
line $ tell $ "parseJSON invalid ="
indented $ do
line . tell $ "prependFailure \"parsing " <> name <> " failed, \""
indented . line . tell $ "(typeMismatch \"Object\" invalid)"