aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2017-06-01 14:16:17 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2017-06-01 14:16:17 +0200
commitc2eb7d085743b8a78d4580d5a07baa899fa9b64e (patch)
treeb96543ae8d2dbcd681aa99147eaadd5d64412b6c /src/Text
parent00d8585d8f6cfafea536c59912f3de9d53ef3193 (diff)
downloadpandoc-c2eb7d085743b8a78d4580d5a07baa899fa9b64e.tar.gz
Use isNothing.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/App.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs
index d8409a00f..bc1d4ce18 100644
--- a/src/Text/Pandoc/App.hs
+++ b/src/Text/Pandoc/App.hs
@@ -413,8 +413,8 @@ convertWithOpts opts = do
mconcat <$> mapM (readFile' >=> r readerOpts) sources
metadata <- if format == "jats" &&
- lookup "csl" (optMetadata opts) == Nothing &&
- lookup "citation-style" (optMetadata opts) == Nothing
+ isNothing (lookup "csl" (optMetadata opts)) &&
+ isNothing (lookup "citation-style" (optMetadata opts))
then do
jatsCSL <- readDataFile datadir "jats.csl"
let jatsEncoded = makeDataURI ("application/xml", jatsCSL)