diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-16 05:08:00 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-16 05:08:00 +0300 |
commit | eb64b221eb101c51c815f57fae6cf29502ca987b (patch) | |
tree | 2f5625a1ad3f49769c7fe187150ebfa01f24cb0a /apps/AddPath.hs | |
parent | rename source files (diff) | |
download | windows-env-eb64b221eb101c51c815f57fae6cf29502ca987b.tar.gz windows-env-eb64b221eb101c51c815f57fae6cf29502ca987b.zip |
code style
Diffstat (limited to 'apps/AddPath.hs')
-rw-r--r-- | apps/AddPath.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/AddPath.hs b/apps/AddPath.hs index 7e5ae65..571012d 100644 --- a/apps/AddPath.hs +++ b/apps/AddPath.hs @@ -65,8 +65,9 @@ addPath options = runExceptT doAddPath >>= either ioError return skipPrompt = optYes options - emptyIfMissing e | isDoesNotExistError e = return "" - | otherwise = throwE e + emptyIfMissing e + | isDoesNotExistError e = return "" + | otherwise = throwE e doAddPath = do oldValue <- Env.query profile varName `catchE` emptyIfMissing |