summaryrefslogtreecommitdiff
path: root/kiki.hs
diff options
context:
space:
mode:
authorjoe <joe@jerkface.net>2014-04-26 17:45:44 -0400
committerjoe <joe@jerkface.net>2014-04-26 17:45:44 -0400
commita4cf7a11a91e7769e791428a3a24e6466455153b (patch)
tree431ca9530548ce611bb683d5d03f94af7d99ade0 /kiki.hs
parent612ed7d0d8e1dffb0ba4bc98a986a0600fca116c (diff)
use mfilter rather than guard
Diffstat (limited to 'kiki.hs')
-rw-r--r--kiki.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiki.hs b/kiki.hs
index b7092dc..555ca92 100644
--- a/kiki.hs
+++ b/kiki.hs
@@ -729,7 +729,7 @@ sync bExport bSecret cmdarg args_raw = do
729 else ConstRef 729 else ConstRef
730 pems = flip map keypairs 730 pems = flip map keypairs
731 $ \(usage,path,cmd) -> 731 $ \(usage,path,cmd) ->
732 let cmd' = guard (not $ null cmd) >> return cmd 732 let cmd' = mfilter (not . null) (Just cmd)
733 in if bExport 733 in if bExport
734 then (ArgFile path, (MutableRef cmd', PEMFile usage)) 734 then (ArgFile path, (MutableRef cmd', PEMFile usage))
735 else if isNothing cmd' 735 else if isNothing cmd'