Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 3b3debf

Browse files
Renaming some variables
1 parent 9c47ff7 commit 3b3debf

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/GitHub.Api/Tasks/DownloadTask.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -171,20 +171,20 @@ public bool RunDownload()
171171
}
172172
}
173173

174-
long respSize = response.ContentLength;
174+
var responseLength = response.ContentLength;
175175
if (restarted && bytes > 0)
176176
{
177-
UpdateProgress(bytes / respSize);
177+
UpdateProgress(bytes / responseLength);
178178
}
179179

180-
using (Stream rStream = response.GetResponseStream())
180+
using (var responseStream = response.GetResponseStream())
181181
{
182-
using (Stream localStream = new FileStream(Destination, FileMode.Append))
182+
using (Stream destinationStream = new FileStream(Destination, FileMode.Append))
183183
{
184184
if (Token.IsCancellationRequested)
185185
return false;
186186

187-
return Utils.Copy(rStream, localStream, 8192, respSize, null, 100);
187+
return Utils.Copy(responseStream, destinationStream, 8192, responseLength, null, 100);
188188
}
189189
}
190190
}

0 commit comments

Comments
 (0)