Skip to content

Commit 4a51acf

Browse files
committed
typo - need to move else clause too
1 parent 9da2b35 commit 4a51acf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/org/sead/uploader/dataverse/DVUploader.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -443,9 +443,10 @@ protected String uploadDatafile(Resource file, String path) {
443443
jsonData = jsonData
444444
+ (!parentPath.isEmpty() ? ",\"directoryLabel\":\"" + parentPath + "\"}"
445445
: "}");
446-
} else {
447-
jsonData = jsonData + "}";
446+
448447
}
448+
} else {
449+
jsonData = jsonData + "}";
449450
}
450451
meb.addTextBody("jsonData", jsonData);
451452

0 commit comments

Comments
 (0)