summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-10-30 11:02:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-10-30 11:02:00 -0700
commit8b3be07ae8566f29cbf73062d87c9dd44f99f566 (patch)
treef662aee321bebbdf8d963ec2c24554f729105cfe /src
parent55b8d0abee2086be12d7dc33f7848f74482ee7e8 (diff)
hlint suggestions.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 58c9e9e2a..32e3e4065 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -830,9 +830,7 @@ options =
(OptArg
(\arg _ -> do
let allExts = getAllExtensions $
- case arg of
- Nothing -> "markdown"
- Just fmt -> T.pack fmt
+ maybe "markdown" T.pack arg
let formatName = maybe "markdown" T.pack arg
if formatName `notElem`
(map fst (readers :: [(Text, Reader PandocPure)]) ++