From a9dfccae9861ebac4824ef17732523ee03d3083c Mon Sep 17 00:00:00 2001 From: drewbrokke Date: Fri, 5 Apr 2024 10:06:28 -0500 Subject: [PATCH] BLADE-743 liferay-blade-cli: BladeCLI: simplify --- cli/src/main/java/com/liferay/blade/cli/BladeCLI.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cli/src/main/java/com/liferay/blade/cli/BladeCLI.java b/cli/src/main/java/com/liferay/blade/cli/BladeCLI.java index 47e4418c0..e93af1aba 100644 --- a/cli/src/main/java/com/liferay/blade/cli/BladeCLI.java +++ b/cli/src/main/java/com/liferay/blade/cli/BladeCLI.java @@ -411,16 +411,12 @@ public void run(String[] args) throws Exception { ResourceUtil.setTrace(true); } - int releasesMaxAge = 7; - if (ArrayUtil.contains(args, "--refresh-releases")) { System.out.println("Checking for new releases..."); - releasesMaxAge = 0; + ReleaseUtil.populateReleases(0); } - ReleaseUtil.populateReleases(releasesMaxAge); - _removeOutDatedTempDir(); Extensions extensions = getExtensions();