Skip to content

Commit 00b23f5

Browse files
Fix bug where tmp file doesn't has whole extension
1 parent 74e9371 commit 00b23f5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/algorithmia/data/DataFile.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public File getFile() throws APIException, IOException {
5959
ext = "";
6060
} else {
6161
body = filename.substring(0, extensionIndex);
62-
ext = filename.substring(extensionIndex + 1);
62+
ext = filename.substring(extensionIndex);
6363
}
6464
if(body.length() < 3) {
6565
// prefix must be at least 3 characters

0 commit comments

Comments
 (0)