diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-12-12 11:26:09 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-12-12 11:26:09 +0300 |
commit | f137d82adf8b02db3519c018373b18059bac486e (patch) | |
tree | 8f14a6079f8357d56f9b9450a038d6f64bffe9c4 /apps/RemovePath.hs | |
parent | refactoring (diff) | |
download | windows-env-f137d82adf8b02db3519c018373b18059bac486e.tar.gz windows-env-f137d82adf8b02db3519c018373b18059bac486e.zip |
refactoring
Diffstat (limited to 'apps/RemovePath.hs')
-rw-r--r-- | apps/RemovePath.hs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/RemovePath.hs b/apps/RemovePath.hs index 2956517..eb1cb00 100644 --- a/apps/RemovePath.hs +++ b/apps/RemovePath.hs @@ -63,7 +63,9 @@ removePath options = do skipPrompt = optYes options - removePathFrom profile = Env.query profile varName >>= either ignoreMissing (doRemovePathFrom profile) + removePathFrom profile = do + oldValue <- Env.query profile varName + either ignoreMissing (doRemovePathFrom profile) oldValue ignoreMissing e | isDoesNotExistError e = return () |