Fix choco update check

This commit is contained in:
crschnick
2025-05-18 16:01:05 +00:00
parent 948c3b8342
commit d25c3cdaa6

View File

@@ -88,7 +88,7 @@ public class ChocoUpdater extends UpdateHandler {
var chocoRelease = getOutdatedPackageUpdateVersion();
// Use current release if the update is not available for choco yet
if (chocoRelease.isPresent() && !chocoRelease.get().equals(rel.getTag())) {
if (chocoRelease.isEmpty() || !chocoRelease.get().equals(rel.getTag())) {
rel = AppRelease.of(AppProperties.get().getVersion());
}