summaryrefslogtreecommitdiff
path: root/Utility/Path.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-20 23:24:48 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-20 23:24:48 -0400
commit9f6b7935ddb3d5dcbe0b4b784dc8acd7288ddba6 (patch)
tree8b87227689a603d09ad9fdfd010b2a3b648c1a2f /Utility/Path.hs
parent9d26192350b9c7b0402720f6f29c99c24748f364 (diff)
go go gadget hlint
Diffstat (limited to 'Utility/Path.hs')
-rw-r--r--Utility/Path.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utility/Path.hs b/Utility/Path.hs
index fe474ee82..ce54fb369 100644
--- a/Utility/Path.hs
+++ b/Utility/Path.hs
@@ -19,7 +19,7 @@ import Control.Applicative
parentDir :: FilePath -> FilePath
parentDir dir =
if not $ null dirs
- then slash ++ join s (take (length dirs - 1) dirs)
+ then slash ++ join s (init dirs)
else ""
where
dirs = filter (not . null) $ split s dir