only:refactoring: reuse `BundleInfo.isMaster` method
This commit is contained in:
parent
407ed51fdd
commit
31d718b04b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue