Skip to content

Commit

Permalink
Changed: Marked GithubUpdater#getLatestVersion as private to prevent …
Browse files Browse the repository at this point in the history
…people from calling it in a sync context
  • Loading branch information
Bram1903 committed Jul 8, 2024
1 parent 03e120d commit 4b9a99d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public void checkForUpdates() {
}

@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");
Expand Down

0 comments on commit 4b9a99d

Please sign in to comment.