only:refactoring: reuse `BundleInfo.isMaster` method

This commit is contained in:
kifir 2024-10-29 00:22:12 +02:00 committed by rusefillc
parent 407ed51fdd
commit 31d718b04b
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ public class Autoupdate {
final BundleUtil.BundleInfo bundleInfo,
final UpdateMode mode
) {
if (bundleInfo.getBranchName().equals("snapshot")) {
if (bundleInfo.isMaster()) {
log.info("Snapshot requested");
return downloadAutoupdateZipFile(bundleInfo, mode, ConnectionAndMeta.getBaseUrl() + ConnectionAndMeta.AUTOUPDATE);
} else {