diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-06-13 06:26:05 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-06-13 06:26:05 +0300 |
commit | 32d9bd8ccdb48162853d9dfa6a81d0412d4fadf7 (patch) | |
tree | fc3551d1849ab3204797c36926c89832f72374db /app/AddPath.hs | |
parent | addpath: detect expandable paths (diff) | |
download | windows-env-32d9bd8ccdb48162853d9dfa6a81d0412d4fadf7.tar.gz windows-env-32d9bd8ccdb48162853d9dfa6a81d0412d4fadf7.zip |
fix HLint warnings
Diffstat (limited to 'app/AddPath.hs')
-rw-r--r-- | app/AddPath.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/AddPath.hs b/app/AddPath.hs index 209e28c..27ec0ed 100644 --- a/app/AddPath.hs +++ b/app/AddPath.hs @@ -91,8 +91,7 @@ addPath options = runExceptT doAddPath >>= either ioError return let destPaths = appendPaths srcPaths $ filter (`notElem` srcPaths) newPaths let destPathsJoined = WindowsEnv.pathJoin $ map pathOriginal destPaths let destValue = WindowsEnv.Value destExpandable destPathsJoined - when (srcValue /= destValue) $ do - promptAndEngrave srcValue destValue + when (srcValue /= destValue) $ promptAndEngrave srcValue destValue promptAndEngrave oldValue newValue = do let promptAnd = if skipPrompt |