Skip to content

Commit

Permalink
correction
Browse files Browse the repository at this point in the history
  • Loading branch information
HaHaWTH committed Sep 28, 2024
1 parent c3c4b99 commit 4276f95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ protected boolean isDevUpdateAvailable() {
InputStreamReader reader = new InputStreamReader(connection.getInputStream());
JsonObject jsonObject = new JsonParser().parse(reader).getAsJsonObject();
String latestHash = jsonObject.get("sha").getAsString();
latestVersion = latestHash.substring(0, 6);
latestVersion = latestHash.substring(0, 7);
currentVersion = PluginVersionTemplate.COMMIT_HASH_SHORT;
isUpdateAvailable = !PluginVersionTemplate.COMMIT_HASH.equals(latestHash);
return isUpdateAvailable;
Expand Down

0 comments on commit 4276f95

Please sign in to comment.