summaryrefslogtreecommitdiff
path: root/Git/Repair.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-01 15:56:24 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-01 15:56:24 -0400
commit02fe8a497434ed6b7cfa12d68779bcaa0d9813c2 (patch)
treefd884b759a3e22af4b679de2c24d3dfb914058d1 /Git/Repair.hs
parent131e38a3ae3d40fb38738e78df6fed4e4a1e6005 (diff)
improve data type
Diffstat (limited to 'Git/Repair.hs')
-rw-r--r--Git/Repair.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Git/Repair.hs b/Git/Repair.hs
index b441f1337..fcfc03600 100644
--- a/Git/Repair.hs
+++ b/Git/Repair.hs
@@ -342,8 +342,8 @@ verifyTree missing treesha r
| S.member treesha missing = return False
| otherwise = do
(ls, cleanup) <- pipeNullSplit (LsTree.lsTreeParams treesha []) r
- let objshas = map (extractSha . LsTree.sha . LsTree.parseLsTree) ls
- if any isNothing objshas || any (`S.member` missing) (catMaybes objshas)
+ let objshas = map (LsTree.sha . LsTree.parseLsTree) ls
+ if any (`S.member` missing) objshas
then do
void cleanup
return False