projects
/
git-annex.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e7a550a
)
optimisation
author
Joey Hess
<joeyh@joeyh.name>
Fri, 29 Dec 2023 14:51:05 +0000
(10:51 -0400)
committer
Joey Hess
<joeyh@joeyh.name>
Fri, 29 Dec 2023 14:51:05 +0000
(10:51 -0400)
Command/Info.hs
patch
|
blob
|
history
diff --git
a/Command/Info.hs
b/Command/Info.hs
index 3027572945741b96f760603d8ed8e49a6424d581..864ad0257913a314e8c53d25fe70ac9f71a5a9b1 100644
(file)
--- a/
Command/Info.hs
+++ b/
Command/Info.hs
@@
-627,10
+627,11
@@
cachedAllRepoData = do
Nothing -> do
matcher <- lift getKeyOnlyMatcher
!v <- lift $ overLocationLogs emptyKeyInfo $ \k locs d -> do
- numcopies <- genericLength . snd
- <$> trustPartition DeadTrusted locs
ifM (matchOnKey matcher k)
- ( return (addKeyCopies numcopies k d)
+ ( do
+ numcopies <- genericLength . snd
+ <$> trustPartition DeadTrusted locs
+ return (addKeyCopies numcopies k d)
, return d
)
put s { allRepoData = Just v }