mirror of
https://github.com/simonmichael/hledger.git
synced 2024-11-07 21:15:19 +03:00
cln: hlint: Remove rendundant guard warnings.
This commit is contained in:
parent
e666bbcaf0
commit
7edcbe4be8
@ -16,7 +16,6 @@
|
||||
- ignore: {name: "Use <$>"}
|
||||
- ignore: {name: "Unused LANGUAGE pragma"}
|
||||
- ignore: {name: "Redundant bracket"}
|
||||
- ignore: {name: "Redundant guard"}
|
||||
- ignore: {name: "Avoid reverse"}
|
||||
- ignore: {name: "Eta reduce"}
|
||||
- ignore: {name: "Use $>"}
|
||||
|
6
Shake.hs
6
Shake.hs
@ -663,9 +663,9 @@ main = do
|
||||
-- With -n/--dry-run, print new content to stdout instead of
|
||||
-- updating the changelog.
|
||||
--
|
||||
phonys (\out -> if
|
||||
| not $ out `elem` changelogs -> Nothing
|
||||
| otherwise -> Just $ do
|
||||
phonys (\out -> if out `notElem` changelogs
|
||||
then Nothing
|
||||
else Just $ do
|
||||
tags <- lines . fromStdout <$> (cmd Shell "git tag" :: Action (Stdout String))
|
||||
oldlines <- liftIO $ lines <$> readFileStrictly out
|
||||
let
|
||||
|
@ -100,7 +100,7 @@ main = do
|
||||
let balreport = balanceReportFromMultiBalanceReport ropts (queryFromOpts d ropts) j
|
||||
let go -- | "--help" `elem` (rawopts_ $ cliopts_ chopts) = putStr (showModeHelp chartmode) >> exitSuccess
|
||||
-- | "--version" `elem` (rawopts_ $ cliopts_ chopts) = putStrLn progversion >> exitSuccess
|
||||
| otherwise = withJournalAndChartOptsDo chopts (writeChart balreport)
|
||||
= withJournalAndChartOptsDo chopts (writeChart balreport)
|
||||
go
|
||||
|
||||
-- copied from hledger-web
|
||||
|
@ -89,7 +89,7 @@ splitTransactionPostings :: Query -> AccountName -> [Day] -> Transaction -> ([Da
|
||||
splitTransactionPostings _q acct dates t
|
||||
-- | q `matchesTransaction` t = (dates', t')
|
||||
-- | otherwise = (dates, t)
|
||||
| otherwise = (dates', t')
|
||||
= (dates', t')
|
||||
where
|
||||
(dates', pss') = mapAccumL (splitPosting acct) dates $ tpostings t
|
||||
t' = txnTieKnot t{tpostings=concat pss'}
|
||||
|
Loading…
Reference in New Issue
Block a user