Skip to content

Commit

Permalink
Bumping versions
Browse files Browse the repository at this point in the history
  • Loading branch information
spring-builds committed Mar 19, 2024
1 parent a6aaa43 commit 7adbc3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,8 @@ private Ref checkout(Git git, String label) throws GitAPIException {
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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ public void shouldNotRefreshWhenNegativeValue() throws Exception {
properties.setRefreshRate(-1);

JGitEnvironmentRepository repo = new JGitEnvironmentRepository(this.environment, properties,
ObservationRegistry.NOOP);
ObservationRegistry.NOOP);

boolean shouldPull = repo.shouldPull(git);

Expand Down

0 comments on commit 7adbc3f

Please sign in to comment.