Skip to content

Commit 18e2afe

Browse files
committed
Small refactoring to Updater
1 parent f4f10c1 commit 18e2afe

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/GHOSTbackup/GHOSTbackup.Helpers/Updater.vb

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,17 @@ Public Class Updater
3333
'Check for updates
3434
'//docs.microsoft.com/en-us/dotnet/api/system.net.downloadstringcompletedeventargs
3535
If Form1.CheckUpdatesChkBox.Checked = True Then
36-
Using Updater As New WebClient
36+
Using Updater As WebClient = New WebClient()
3737
Updater.Headers.Add("User-Agent", "GHOST Buster (+https://strappazzon.xyz/GRW-GHOST-Buster)")
38-
Dim VersionURI As New Uri("https://raw.githubusercontent.com/Strappazzon/GRW-GHOST-Buster/master/version")
38+
Dim VersionURI As Uri = New Uri("https://raw.githubusercontent.com/Strappazzon/GRW-GHOST-Buster/master/version")
3939
Updater.DownloadStringAsync(VersionURI)
4040
'Call updater_DownloadStringCompleted when the download completes
4141
AddHandler Updater.DownloadStringCompleted, AddressOf Updater_DownloadStringCompleted
4242
End Using
4343
End If
4444
End Sub
4545

46-
Private Shared Sub Updater_DownloadStringCompleted(ByVal sender As Object, ByVal e As DownloadStringCompletedEventArgs)
46+
Private Shared Sub Updater_DownloadStringCompleted(sender As Object, e As DownloadStringCompletedEventArgs)
4747
If e.Error Is Nothing Then
4848
Dim FetchedVer As Integer = e.Result
4949

0 commit comments

Comments
 (0)