Skip to content

Commit 9d07b59

Browse files
committed
Remove redundant string creation
1 parent 490e0b4 commit 9d07b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/tus/java/client/TusUpload.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public String getEncodedMetadata() {
9898
if(!firstElement) {
9999
encoded += ",";
100100
}
101-
encoded += entry.getKey() + " " + new String(base64Encode(entry.getValue().getBytes()));
101+
encoded += entry.getKey() + " " + base64Encode(entry.getValue().getBytes());
102102

103103
firstElement = false;
104104
}

0 commit comments

Comments
 (0)