Skip to content

Commit

Permalink
Remove redundant string creation
Browse files Browse the repository at this point in the history
  • Loading branch information
Acconut committed Mar 20, 2016
1 parent 490e0b4 commit 9d07b59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/tus/java/client/TusUpload.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public String getEncodedMetadata() {
if(!firstElement) {
encoded += ",";
}
encoded += entry.getKey() + " " + new String(base64Encode(entry.getValue().getBytes()));
encoded += entry.getKey() + " " + base64Encode(entry.getValue().getBytes());

firstElement = false;
}
Expand Down

0 comments on commit 9d07b59

Please sign in to comment.