diff options
author | Ryan Scott <ryan.gl.scott@gmail.com> | 2020-02-17 11:03:50 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-17 08:03:50 -0800 |
commit | 6a01386cd1e562eb3d75975e63c0df1491ecc01e (patch) | |
tree | 0d3eb7d231534253ccf0a3bdd1dfc804555b28a5 /src/Text/Pandoc/Writers | |
parent | 0808c2a03f0dec1cd442e5e3cddfb70419724874 (diff) | |
download | pandoc-6a01386cd1e562eb3d75975e63c0df1491ecc01e.tar.gz |
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.
Diffstat (limited to 'src/Text/Pandoc/Writers')
-rw-r--r-- | src/Text/Pandoc/Writers/AsciiDoc.hs | 1 |
1 files changed, 0 insertions, 1 deletions
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 = |