better parameter name

This commit is contained in:
Joey Hess 2012-09-19 17:10:13 -04:00
parent 3d98326763
commit 77938a7d62

View file

@ -101,10 +101,10 @@ rsyncUrlIsPath s
parseRsyncProgress :: String -> (Maybe Integer, String)
parseRsyncProgress = go [] . reverse . progresschunks
where
go prev [] = (Nothing, prev)
go prev (x:xs) = case parsebytes (findbytesstart x) of
Nothing -> go (delim:x++prev) xs
Just b -> (Just b, prev)
go remainder [] = (Nothing, remainder)
go remainder (x:xs) = case parsebytes (findbytesstart x) of
Nothing -> go (delim:x++remainder) xs
Just b -> (Just b, remainder)
delim = '\r'
{- Find chunks that each start with delim.