summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Services/UpdateService.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2017-02-11 20:37:33 +0000
committersr55 <[email protected]>2017-02-11 20:37:33 +0000
commit9ce3910fd193628e754abf4939c3758f1e57e100 (patch)
treebb7e367be99a36e85aa2c4beb1f45c243ae43c75 /win/CS/HandBrakeWPF/Services/UpdateService.cs
parenta1455ea947b0f85665228f23d2f94f66bdad2cdd (diff)
WinGui: Fix a number of stylecop warnings.
Diffstat (limited to 'win/CS/HandBrakeWPF/Services/UpdateService.cs')
-rw-r--r--win/CS/HandBrakeWPF/Services/UpdateService.cs10
1 files changed, 3 insertions, 7 deletions
diff --git a/win/CS/HandBrakeWPF/Services/UpdateService.cs b/win/CS/HandBrakeWPF/Services/UpdateService.cs
index 6a8885a07..362df2e33 100644
--- a/win/CS/HandBrakeWPF/Services/UpdateService.cs
+++ b/win/CS/HandBrakeWPF/Services/UpdateService.cs
@@ -15,15 +15,11 @@ namespace HandBrakeWPF.Services
using System.Net;
using System.Reflection;
using System.Security.Cryptography;
- using System.Text;
using System.Threading;
-
- using HandBrake.ApplicationServices.Utilities;
using HandBrake.ApplicationServices.Interop;
-
+ using HandBrake.ApplicationServices.Utilities;
using HandBrakeWPF.Model;
using HandBrakeWPF.Services.Interfaces;
-
using AppcastReader = HandBrakeWPF.Utilities.AppcastReader;
/// <summary>
@@ -110,7 +106,7 @@ namespace HandBrakeWPF.Services
var currentBuild = HandBrakeUtils.Build;
// Fetch the Appcast from our server.
- HttpWebRequest request = (HttpWebRequest) WebRequest.Create(url);
+ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
request.AllowAutoRedirect = false; // We will never do this.
WebResponse response = request.GetResponse();
@@ -196,7 +192,7 @@ namespace HandBrakeWPF.Services
while ((bytesSize = responceStream.Read(downBuffer, 0, downBuffer.Length)) > 0)
{
localStream.Write(downBuffer, 0, bytesSize);
- progress(new DownloadStatus { BytesRead = localStream.Length, TotalBytes = fileSize});
+ progress(new DownloadStatus { BytesRead = localStream.Length, TotalBytes = fileSize });
}
responceStream.Close();