improve comment wording

This commit is contained in:
Joey Hess 2021-07-29 13:21:23 -04:00
parent 897fd5c104
commit 3c5280b1cf
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -437,10 +437,9 @@ checkKeyUpgrade _ _ _ (AssociatedFile Nothing) =
{- Runs the backend specific check on a key's content object. {- Runs the backend specific check on a key's content object.
- -
- When a file is unlocked, it may be a hard link to the object, - When a annex.this is set, an unlocked file may be a hard link to the object.
- thus when the user modifies the file, the object will be modified and - Thus when the user modifies the file, the object will be modified and
- not pass the check, and we don't want to find an error in this case. - not pass the check, and we don't want to find an error in this case.
- So, skip the check if the key is unlocked and modified.
-} -}
checkBackend :: Backend -> Key -> KeyStatus -> AssociatedFile -> Annex Bool checkBackend :: Backend -> Key -> KeyStatus -> AssociatedFile -> Annex Bool
checkBackend backend key keystatus afile = do checkBackend backend key keystatus afile = do