simplify
This commit is contained in:
parent
9b6628bca9
commit
148d9f0088
1 changed files with 3 additions and 3 deletions
|
@ -42,11 +42,11 @@ get = do
|
||||||
where
|
where
|
||||||
pathenv s = do
|
pathenv s = do
|
||||||
v <- getEnv s
|
v <- getEnv s
|
||||||
when (isJust v) $
|
|
||||||
unsetEnv s
|
|
||||||
case v of
|
case v of
|
||||||
|
Just d -> do
|
||||||
|
unsetEnv s
|
||||||
|
Just <$> absPath d
|
||||||
Nothing -> return Nothing
|
Nothing -> return Nothing
|
||||||
Just d -> Just <$> absPath d
|
|
||||||
configure Nothing r = Git.Config.read r
|
configure Nothing r = Git.Config.read r
|
||||||
configure (Just d) r = do
|
configure (Just d) r = do
|
||||||
r' <- Git.Config.read r
|
r' <- Git.Config.read r
|
||||||
|
|
Loading…
Reference in a new issue