Skip to content

Commit

Permalink
修复快照版本检查
Browse files Browse the repository at this point in the history
  • Loading branch information
Ghost-chu authored and Gaojianli committed Oct 31, 2024
1 parent 32136aa commit e21d2fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/ghostchu/peerbanhelper/BuildMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public void loadBuildMeta(YamlConfiguration configuration) {
}

public boolean isSnapshotOrBeta() {
return !"release".equals(branch);
return "master".equals(branch) || "dev".equals(branch);
}

public String toString() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public void start() throws SQLException {
}

private void sendSnapshotAlert() {
if (false) {
if (Main.getMeta().isSnapshotOrBeta()) {
alertManager.publishAlert(false, AlertLevel.INFO, "unstable-alert", new TranslationComponent(Lang.ALERT_SNAPSHOT), new TranslationComponent(Lang.ALERT_SNAPSHOT_DESCRIPTION));
} else {
alertManager.markAlertAsRead("unstable-alert");
Expand Down

0 comments on commit e21d2fb

Please sign in to comment.