Optimize GitHub pre-release request

This commit is contained in:
JustArchi 2017-09-26 19:14:44 +02:00
parent 156dd2f76d
commit 47cccc2bee

View file

@ -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;