summaryrefslogtreecommitdiff
path: root/Annex/MetaData.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2015-04-11 00:10:34 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2015-04-11 00:10:34 -0400
commite80353490db56e21d266a384141d39f50797e8e3 (patch)
treeb6d7a46763e1d83f11fd57eaad36800d666f7a8f /Annex/MetaData.hs
parent9becab4331b57a05369a3dcf225c57fd24f39e41 (diff)
a few hlints
Diffstat (limited to 'Annex/MetaData.hs')
-rw-r--r--Annex/MetaData.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Annex/MetaData.hs b/Annex/MetaData.hs
index 3b776a6d7..0751bbb49 100644
--- a/Annex/MetaData.hs
+++ b/Annex/MetaData.hs
@@ -36,7 +36,7 @@ import Data.Time.Clock.POSIX
-}
genMetaData :: Key -> FilePath -> FileStatus -> Annex ()
genMetaData key file status = do
- maybe noop (flip copyMetaData key) =<< catKeyFileHEAD file
+ maybe noop (`copyMetaData` key) =<< catKeyFileHEAD file
whenM (annexGenMetaData <$> Annex.getGitConfig) $ do
curr <- getCurrentMetaData key
addMetaData key (dateMetaData mtime curr)
@@ -52,4 +52,4 @@ dateMetaData mtime old = MetaData $ M.fromList $ filter isnew
]
where
isnew (f, _) = S.null (currentMetaDataValues f old)
- (y, m, _d) = toGregorian $ utctDay $ mtime
+ (y, m, _d) = toGregorian $ utctDay mtime