Skip to content

Commit b8e0bb8

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent e164060 commit b8e0bb8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/transport/TransportVersionResourcesService.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ private String findUpstreamRef() {
265265

266266
String remotesOutput = gitCommand("remote").strip();
267267
if (remotesOutput.isEmpty()) {
268-
throw new RuntimeException("No remotes found. If this is a test set gradle property " +
269-
"org.elasticsearch.transport.upstreamRef");
268+
throw new RuntimeException(
269+
"No remotes found. If this is a test set gradle property " + "org.elasticsearch.transport.upstreamRef"
270+
);
270271
}
271272
List<String> remoteNames = List.of(remotesOutput.split("\n"));
272273
String transportVersionRemoteName = "transport-version-resources-upstream";
@@ -275,8 +276,7 @@ private String findUpstreamRef() {
275276
String upstreamUrl = null;
276277
for (String remoteName : remoteNames) {
277278
String getUrlOutput = gitCommand("remote", "get-url", remoteName).strip();
278-
if (getUrlOutput.startsWith("[email protected]:elastic/")
279-
|| getUrlOutput.startsWith("https://github.com/elastic/")) {
279+
if (getUrlOutput.startsWith("[email protected]:elastic/") || getUrlOutput.startsWith("https://github.com/elastic/")) {
280280
upstreamUrl = getUrlOutput;
281281
}
282282
}

0 commit comments

Comments
 (0)