aboutsummaryrefslogtreecommitdiff
path: root/Version.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Version.hs')
-rw-r--r--Version.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Version.hs b/Version.hs
index ce39c0c1b..839470120 100644
--- a/Version.hs
+++ b/Version.hs
@@ -25,13 +25,13 @@ getVersion :: Annex (Maybe String)
getVersion = do
g <- Annex.gitRepo
let v = Git.configGet g versionField ""
- if (not $ null v)
+ if not $ null v
then return $ Just v
else do
-- version 0 was not recorded in .git/config;
-- such a repo should have an annexDir
d <- liftIO $ doesDirectoryExist $ annexDir g
- if (d)
+ if d
then return $ Just "0"
else return Nothing -- no version yet