Changed: Marked GithubUpdater#getLatestVersion as private to prevent people from calling it in a sync context

This commit is contained in:
Bram 2024-07-08 11:23:12 +02:00
parent 03e120d24d
commit 4b9a99dcf8
No known key found for this signature in database
GPG key ID: 13E608068F40E3CC

View file

@ -45,7 +45,7 @@ public final class GithubUpdater {
}
@Blocking
public PEVersion getLatestVersion() throws IOException {
private PEVersion getLatestVersion() throws IOException {
URL url = new URL("https://api.github.com/repos/" + org + "/" + repo + "/releases/latest");
URLConnection connection = url.openConnection();
connection.addRequestProperty("User-Agent", "Mozilla/5.0");