summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-09-30 02:50:34 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-09-30 02:50:34 -0400
commit17b29176b8350adf9f6d547d59b97c965f1aad7f (patch)
treec76385e8333cd8e1624289a48645d040a4e46d07
parenta7e7dda55a82cb5007c5eaa2f7752f5cefdcb1d2 (diff)
fix handling of uuids with empty descriptions
-rw-r--r--UUID.hs5
1 files changed, 1 insertions, 4 deletions
diff --git a/UUID.hs b/UUID.hs
index fa71bed39..a150dc333 100644
--- a/UUID.hs
+++ b/UUID.hs
@@ -100,7 +100,4 @@ uuidMap = do
s <- Branch.get uuidLog
return $ M.fromList $ map pair $ lines s
where
- pair l =
- if 1 < length (words l)
- then (head $ words l, unwords $ drop 1 $ words l)
- else ("", "")
+ pair l = (head $ words l, unwords $ drop 1 $ words l)