Skip to content

Commit

Permalink
Minor refactoring: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rt1shnik committed Feb 6, 2020
1 parent 15f8aa1 commit 82de8d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -364,15 +364,15 @@ public void move(String sourceUrl, String destinationUrl, boolean overwrite) thr

@Override
public void move(String sourceUrl, String destinationUrl, boolean overwrite, String lockToken) throws IOException {
Request.Builder buildsr = new Request.Builder()
Request.Builder builder = new Request.Builder()
.url(sourceUrl)
.method("MOVE", null)
.header("DESTINATION", URI.create(destinationUrl).toASCIIString())
.header("OVERWRITE", overwrite ? "T" : "F");
if (lockToken != null) {
buildsr.header("If", "<" + destinationUrl + "> (<" + lockToken + ">)");
builder.header("If", "<" + destinationUrl + "> (<" + lockToken + ">)");
}
Request request = buildsr.build();
Request request = builder.build();
execute(request);
}

Expand Down

0 comments on commit 82de8d2

Please sign in to comment.