Skip to content

Commit

Permalink
cleanup MohistUpdater
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed Sep 24, 2024
1 parent a60502f commit a36699e
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,15 @@ public class MohistUpdater implements InputStreamUpdater, FileDigestChecksum {
private final String version;
private final String build;
private final String projectUrl;
private final String versionUrl;
private final String buildUrl;
private final String downloadUrl;

public MohistUpdater(VersionQuery versionQuery, String project) {
this.updateBuilder = versionQuery.updateBuilder;
projectUrl = String.format("https://mohistmc.com/api/v2/projects/%s/", project);
versionUrl = projectUrl + "%s/";
buildUrl = versionUrl + "builds/";
downloadUrl = buildUrl + "%s/download";
projectUrl = String.format("https://mohistmc.com/api/v2/projects/%s", project);
String versionUrl = projectUrl + "/%s";
buildUrl = versionUrl + "/builds";
downloadUrl = buildUrl + "/%s/download";

version = versionQuery.isDefault ? getDefaultVersion() : versionQuery.version;
build = getBuild();
Expand Down

0 comments on commit a36699e

Please sign in to comment.