File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,9 +29,11 @@ public class GithubRelease
2929
3030 private static string GithubRequestGET ( string uri )
3131 {
32- var downloadClient = new DownloadClient ( uri ) ;
33- downloadClient . AddHeader ( "Accept" , "application/vnd.github.v3+json" ) ;
34- return downloadClient . DownloadString ( ) ;
32+ using ( var downloadClient = new DownloadClient ( uri ) )
33+ {
34+ downloadClient . AddHeader ( "Accept" , "application/vnd.github.v3+json" ) ;
35+ return downloadClient . DownloadString ( ) ;
36+ }
3537 }
3638
3739 private static GithubRelease GetLatestGithubRelease ( string repoUser , string repoName )
Original file line number Diff line number Diff line change 11using System ;
2- using System . Collections . Generic ;
32using System . IO ;
4- using System . Linq ;
53using System . Net . Http ;
6- using System . Text ;
7- using System . Threading . Tasks ;
8- using System . Windows . Forms ;
94
105namespace ModApi . UpdateManager
116{
You can’t perform that action at this time.
0 commit comments