Bumping versions

This commit is contained in:
buildmaster
2024-03-19 10:35:35 +00:00
parent a6aaa43b3f
commit 7adbc3fcaf
2 changed files with 3 additions and 2 deletions

View File

@@ -470,7 +470,8 @@ public class JGitEnvironmentRepository extends AbstractScmEnvironmentRepository
protected boolean shouldPull(Git git) throws GitAPIException {
boolean shouldPull;
if (this.refreshRate < 0 || (this.refreshRate > 0 && System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
if (this.refreshRate < 0 || (this.refreshRate > 0
&& System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
return false;
}

View File

@@ -542,7 +542,7 @@ public class JGitEnvironmentRepositoryTests {
properties.setRefreshRate(-1);
JGitEnvironmentRepository repo = new JGitEnvironmentRepository(this.environment, properties,
ObservationRegistry.NOOP);
ObservationRegistry.NOOP);
boolean shouldPull = repo.shouldPull(git);