From c7d5766463e5e99fcd2352c7177cf057c1971615 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 12 Jul 2016 17:10:29 +0300 Subject: refactoring --- apps/UnsetEnv.hs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'apps/UnsetEnv.hs') diff --git a/apps/UnsetEnv.hs b/apps/UnsetEnv.hs index bf7ad93..6fa2f2c 100644 --- a/apps/UnsetEnv.hs +++ b/apps/UnsetEnv.hs @@ -34,7 +34,7 @@ main = execParser parser >>= unsetEnv fullDesc <> progDesc "Unset environment variables" unsetEnv :: Options -> IO () -unsetEnv options = Environment.wipeFromRegistryWithPrompt env $ name options +unsetEnv options = Environment.wipeWithPrompt env $ name options where - env | global options = Environment.AllUsersEnvironment - | otherwise = Environment.CurrentUserEnvironment + env | global options = Environment.AllUsers + | otherwise = Environment.CurrentUser -- cgit v1.2.3