fix indent for readability

This commit is contained in:
Joey Hess 2024-03-08 13:38:46 -04:00
parent 5a3ed3f910
commit 1115fb1f9b
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -87,11 +87,11 @@ mergeFile :: S.ByteString -> RawFilePath -> HashObjectHandle -> CatFileHandle ->
mergeFile info file hashhandle h = case S8.words info of
[_colonmode, _bmode, asha, bsha, _status] ->
case filter (`notElem` nullShas) [Ref asha, Ref bsha] of
[] -> return Nothing
(sha:[]) -> use sha
shas -> use
=<< either return (hashBlob hashhandle . L8.unlines)
=<< calcMerge . zip shas <$> mapM getcontents shas
[] -> return Nothing
(sha:[]) -> use sha
shas -> use
=<< either return (hashBlob hashhandle . L8.unlines)
=<< calcMerge . zip shas <$> mapM getcontents shas
_ -> return Nothing
where
use sha = return $ Just $