Skip to content

Commit 7adbc3f

Browse files
committed
Bumping versions
1 parent a6aaa43 commit 7adbc3f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepository.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,8 @@ private Ref checkout(Git git, String label) throws GitAPIException {
470470
protected boolean shouldPull(Git git) throws GitAPIException {
471471
boolean shouldPull;
472472

473-
if (this.refreshRate < 0 || (this.refreshRate > 0 && System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
473+
if (this.refreshRate < 0 || (this.refreshRate > 0
474+
&& System.currentTimeMillis() - this.lastRefresh < (this.refreshRate * 1000))) {
474475
return false;
475476
}
476477

spring-cloud-config-server/src/test/java/org/springframework/cloud/config/server/environment/JGitEnvironmentRepositoryTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ public void shouldNotRefreshWhenNegativeValue() throws Exception {
542542
properties.setRefreshRate(-1);
543543

544544
JGitEnvironmentRepository repo = new JGitEnvironmentRepository(this.environment, properties,
545-
ObservationRegistry.NOOP);
545+
ObservationRegistry.NOOP);
546546

547547
boolean shouldPull = repo.shouldPull(git);
548548

0 commit comments

Comments
 (0)