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:
parent
f03ea3ff87
commit
d0dc0c353e
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue