tweak
This commit is contained in:
parent
e138a514a9
commit
b67525ce65
1 changed files with 4 additions and 4 deletions
|
@ -146,10 +146,10 @@ parseCfg curcfg = go [] curcfg . lines
|
|||
where
|
||||
(setting, rest) = separate isSpace l
|
||||
(repo, value) = separate (== '=') rest
|
||||
value' = dropWhile isSpace value
|
||||
repo' = reverse $ dropWhile isSpace $
|
||||
reverse $ dropWhile isSpace repo
|
||||
|
||||
value' = trimspace value
|
||||
repo' = reverse $ trimspace $
|
||||
reverse $ trimspace repo
|
||||
trimspace = dropWhile isSpace
|
||||
|
||||
handle cfg u setting value
|
||||
| setting == "trust" = case readTrustLevel value of
|
||||
|
|
Loading…
Reference in a new issue