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.
This commit is contained in:
Ryan Scott 2020-02-17 11:03:50 -05:00 committed by GitHub
parent 0808c2a03f
commit 6a01386cd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 =