diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-07-17 18:33:45 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-07-17 18:33:45 +0300 |
commit | d70025b57690133675a36c5974affa9edc5d50fb (patch) | |
tree | 52f12e7649f3c7daf5dfffce2f5d89d9bee2b94e /apps/FixNtSymbolPath.hs | |
parent | refactoring (diff) | |
download | windows-env-d70025b57690133675a36c5974affa9edc5d50fb.tar.gz windows-env-d70025b57690133675a36c5974affa9edc5d50fb.zip |
code style
Diffstat (limited to '')
-rw-r--r-- | apps/FixNtSymbolPath.hs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/FixNtSymbolPath.hs b/apps/FixNtSymbolPath.hs index 14d3ea6..7138f94 100644 --- a/apps/FixNtSymbolPath.hs +++ b/apps/FixNtSymbolPath.hs @@ -70,8 +70,9 @@ fixNtSymbolPath options = do varName = "_NT_SYMBOL_PATH" forAllUsers = optGlobal options - env | forAllUsers = Environment.AllUsers - | otherwise = Environment.CurrentUser + env = if forAllUsers + then Environment.AllUsers + else Environment.CurrentUser query = Environment.query env varName |