diff options
author | Joey Hess <joey@kitenet.net> | 2012-09-19 17:10:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2012-09-19 17:10:13 -0400 |
commit | 77938a7d621c47c2da4a793dbcee360825c9aea7 (patch) | |
tree | bbfb915db7c6343212b7ba8c68c17b90f215ef32 /Utility | |
parent | 3d9832676340e6aec494bfb13509aac186c51f3b (diff) |
better parameter name
Diffstat (limited to 'Utility')
-rw-r--r-- | Utility/Rsync.hs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Utility/Rsync.hs b/Utility/Rsync.hs index a533b88dd..0fe4a8986 100644 --- a/Utility/Rsync.hs +++ b/Utility/Rsync.hs @@ -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. |