summaryrefslogtreecommitdiff
path: root/Utility/Rsync.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-09-19 17:10:13 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-09-19 17:10:13 -0400
commit77938a7d621c47c2da4a793dbcee360825c9aea7 (patch)
treebbfb915db7c6343212b7ba8c68c17b90f215ef32 /Utility/Rsync.hs
parent3d9832676340e6aec494bfb13509aac186c51f3b (diff)
better parameter name
Diffstat (limited to 'Utility/Rsync.hs')
-rw-r--r--Utility/Rsync.hs8
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.