mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 15:14:41 +00:00
Optimize GitHub pre-release request
This commit is contained in:
parent
156dd2f76d
commit
47cccc2bee
1 changed files with 1 additions and 4 deletions
|
@ -127,10 +127,7 @@ namespace ArchiSteamFarm {
|
|||
}
|
||||
}
|
||||
|
||||
string releaseURL = SharedInfo.GithubReleaseURL;
|
||||
if (Program.GlobalConfig.UpdateChannel == GlobalConfig.EUpdateChannel.Stable) {
|
||||
releaseURL += "/latest";
|
||||
}
|
||||
string releaseURL = SharedInfo.GithubReleaseURL + (Program.GlobalConfig.UpdateChannel == GlobalConfig.EUpdateChannel.Stable ? "/latest" : "?per_page=1");
|
||||
|
||||
GitHub.ReleaseResponse releaseResponse;
|
||||
|
||||
|
|
Loading…
Reference in a new issue