convert fsckKey to a Maybe
This way it's clear when a backend does not implement its own fsck checks.
This commit is contained in:
parent
50c063df06
commit
d36525e974
5 changed files with 8 additions and 6 deletions
|
@ -137,7 +137,9 @@ checkKeySize key = do
|
|||
|
||||
|
||||
checkBackend :: Backend -> Key -> Annex Bool
|
||||
checkBackend = Types.Backend.fsckKey
|
||||
checkBackend backend key = case Types.Backend.fsckKey backend of
|
||||
Nothing -> return True
|
||||
Just a -> a key
|
||||
|
||||
checkKeyNumCopies :: Key -> FilePath -> Maybe Int -> Annex Bool
|
||||
checkKeyNumCopies key file numcopies = do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue