From 6a01386cd1e562eb3d75975e63c0df1491ecc01e Mon Sep 17 00:00:00 2001 From: Ryan Scott Date: Mon, 17 Feb 2020 11:03:50 -0500 Subject: 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. --- src/Text/Pandoc/Writers/AsciiDoc.hs | 1 - 1 file changed, 1 deletion(-) (limited to 'src/Text/Pandoc/Writers') diff --git a/src/Text/Pandoc/Writers/AsciiDoc.hs b/src/Text/Pandoc/Writers/AsciiDoc.hs index 0e22c3c12..4d3375e62 100644 --- a/src/Text/Pandoc/Writers/AsciiDoc.hs +++ b/src/Text/Pandoc/Writers/AsciiDoc.hs @@ -492,7 +492,6 @@ inlineToAsciiDoc _ il@(RawInline f s) | otherwise = do report $ InlineNotRendered il return empty - | otherwise = return empty inlineToAsciiDoc _ LineBreak = return $ " +" <> cr inlineToAsciiDoc _ Space = return space inlineToAsciiDoc opts SoftBreak = -- cgit v1.2.3