Skip to content

Commit

Permalink
Merge f61d4f3 into 29fdbe3
Browse files Browse the repository at this point in the history
  • Loading branch information
rdpa committed Oct 26, 2018
2 parents 29fdbe3 + f61d4f3 commit 89f8106
Showing 1 changed file with 0 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
@Extension(dynamicLoadable = YesNoMaybe.YES)
public class StatisticsConfiguration extends GlobalConfiguration {

private static final String SLASH = "/";
public static final String PROTOCOL_ERROR_MESSAGE = "Only http and https protocols are supported";

private String queueUrl;
Expand Down Expand Up @@ -49,12 +48,6 @@ public static StatisticsConfiguration get() {
}

public String getQueueUrl() {
if (queueUrl != null && !queueUrl.isEmpty()) {
if (queueUrl.endsWith(SLASH)) {
return queueUrl;
}
return queueUrl + SLASH;
}
return queueUrl;
}

Expand Down Expand Up @@ -109,12 +102,6 @@ public void setQueueUrl(String queueUrl) {
}

public String getBuildUrl() {
if (buildUrl != null && !buildUrl.isEmpty()) {
if (buildUrl.endsWith(SLASH)) {
return buildUrl;
}
return buildUrl + SLASH;
}
return buildUrl;
}

Expand All @@ -124,12 +111,6 @@ public void setBuildUrl(String buildUrl) {
}

public String getProjectUrl() {
if (projectUrl != null && !projectUrl.isEmpty()) {
if (projectUrl.endsWith(SLASH)) {
return projectUrl;
}
return projectUrl + SLASH;
}
return projectUrl;
}

Expand All @@ -139,12 +120,6 @@ public void setProjectUrl(String projectUrl) {
}

public String getBuildStepUrl() {
if (buildStepUrl != null && !buildStepUrl.isEmpty()) {
if (buildStepUrl.endsWith(SLASH)) {
return buildStepUrl;
}
return buildStepUrl + SLASH;
}
return buildStepUrl;
}

Expand All @@ -154,12 +129,6 @@ public void setBuildStepUrl(String buildStepUrl) {
}

public String getScmCheckoutUrl() {
if (scmCheckoutUrl != null && !scmCheckoutUrl.isEmpty()) {
if (scmCheckoutUrl.endsWith(SLASH)) {
return scmCheckoutUrl;
}
return scmCheckoutUrl + SLASH;
}
return scmCheckoutUrl;
}

Expand Down

0 comments on commit 89f8106

Please sign in to comment.