summaryrefslogtreecommitdiff
path: root/Annex/Difference.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/Difference.hs
parent9becab4331b57a05369a3dcf225c57fd24f39e41 (diff)
a few hlints
Diffstat (limited to 'Annex/Difference.hs')
-rw-r--r--Annex/Difference.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Annex/Difference.hs b/Annex/Difference.hs
index 66dc03a32..e0dc17da7 100644
--- a/Annex/Difference.hs
+++ b/Annex/Difference.hs
@@ -38,10 +38,10 @@ setDifferences = do
( do
oldds <- recordedDifferencesFor u
when (ds /= oldds) $
- warning $ "Cannot change tunable parameters in already initialized repository."
+ warning "Cannot change tunable parameters in already initialized repository."
return oldds
, if otherds == mempty
- then ifM (not . null . filter (/= u) . M.keys <$> uuidMap)
+ then ifM (any (/= u) . M.keys <$> uuidMap)
( do
warning "Cannot change tunable parameters in a clone of an existing repository."
return mempty