Skip to content

Commit

Permalink
[JENKINS-45501] Readability fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Arabaolaza committed Jul 14, 2017
1 parent c17a394 commit 72d8141
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -152,8 +152,8 @@ private void copyViaHttp(Folder f, JenkinsRule.WebClient wc, String fromName, St
r.jenkins.setCrumbIssuer(null);

URL apiURL = new URL(MessageFormat.format(
"{0}createItem?mode=copy&from={1}&name={2}",
r.jenkins.getRootUrl() + "/" + f.getUrl().toString(), fromName, toName));
"{0}/{1}createItem?mode=copy&from={2}&name={3}",
r.jenkins.getRootUrl().toString(), f.getUrl().toString(), fromName, toName));

WebRequest request = new WebRequest(apiURL, HttpMethod.POST);
request.setEncodingType(null);
Expand Down

0 comments on commit 72d8141

Please sign in to comment.