mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 03:42:25 +03:00
web: clean up warnings
This commit is contained in:
parent
2b39f68682
commit
c2644f4c48
@ -46,7 +46,7 @@ handleAdd = do
|
||||
)
|
||||
mjournal
|
||||
estrs = [edate, edesc, ejournal]
|
||||
(errs1, [date,desc,journalpath]) = (lefts estrs, rights estrs) -- XXX irrefutable
|
||||
(errs1, [date,desc,journalpath]) = (lefts estrs, rights estrs)
|
||||
(params,_) <- runRequestBody
|
||||
-- mtrace params
|
||||
let paramnamep s = do {string s; n <- many1 digit; eof; return (read n :: Int)}
|
||||
@ -142,7 +142,7 @@ handleEdit = do
|
||||
(\f -> let f' = unpack f in
|
||||
if f' `elem` journalFilePaths j
|
||||
then Right f'
|
||||
else Left "unrecognised journal file path")
|
||||
else Left ("unrecognised journal file path"::String))
|
||||
mjournal
|
||||
estrs = [etext, ejournal]
|
||||
errs = lefts estrs
|
||||
|
Loading…
Reference in New Issue
Block a user