Skip to content

Commit

Permalink
BLADE-743 liferay-blade-cli: BladeCLI: simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
drewbrokke committed Apr 5, 2024
1 parent 386284c commit a9dfcca
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cli/src/main/java/com/liferay/blade/cli/BladeCLI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit a9dfcca

Please sign in to comment.