Powerpoint writer: code cleanup

Since we're using mapM_ instead of mapM, we can get rid of the return
statement. We also don't need the `unless` statement anymore.
This commit is contained in:
Jesse Rosenthal 2018-03-30 13:53:04 -04:00
parent f03ea3ff87
commit d0dc0c353e

View file

@ -629,10 +629,7 @@ blocksToSlide' _ (blk : blks) spkNotes
, "columns" `elem` classes
, Div (_, clsL, _) blksL : Div (_, clsR, _) blksR : remaining <- divBlks
, "column" `elem` clsL, "column" `elem` clsR = do
unless (null blks)
(mapM_ (addLogMessage . BlockNotRendered) blks >> return ())
unless (null remaining)
(mapM_ (addLogMessage . BlockNotRendered) remaining >> return ())
mapM_ (addLogMessage . BlockNotRendered) (blks ++ remaining)
mbSplitBlksL <- splitBlocks blksL
mbSplitBlksR <- splitBlocks blksR
let blksL' = case mbSplitBlksL of