git.iko.soy/typeable/pandoc
on master help sign in
Remove redundant `otherwise` guard in inlineToAsciiDoc (#6146)

The `RawInline` case in `inlineToAsciiDoc` currenty looks like this: ```hs inlineToAsciiDoc _ il@(RawInline f s) | f == "asciidoc" = return $ literal s | otherwise = do report $ InlineNotRendered il return empty | otherwise = return empty ``` Notice how there are there are two overlapping `otherwise` guards. The second `otherwise` guard is completely unreachable, so this patch removes it.

commit6a01386cd1e562eb3d75975e63c0df1491ecc01e authorRyan Scott <ryan.gl.scott@gmail.com> dateMon 17 Feb 2020, 11:03 (7 years ago) parent0808c2a
1 file changed−1
src/Text/Pandoc/Writers/AsciiDoc.hs−1
src/Text/Pandoc/Writers/AsciiDoc.hs−1
@@ -492,7 +492,6 @@ inlineToAsciiDoc _ il@(RawInline f s)
492492 | otherwise = do
493493 report $ InlineNotRendered il
494494 return empty
495− | otherwise = return empty
496495inlineToAsciiDoc _ LineBreak = return $ " +" <> cr
497496inlineToAsciiDoc _ Space = return space
498497inlineToAsciiDoc opts SoftBreak =