diff --git a/src/main/java/org/sead/uploader/dataverse/DVUploader.java b/src/main/java/org/sead/uploader/dataverse/DVUploader.java index d81a1e3..ed9a1c7 100644 --- a/src/main/java/org/sead/uploader/dataverse/DVUploader.java +++ b/src/main/java/org/sead/uploader/dataverse/DVUploader.java @@ -443,9 +443,10 @@ protected String uploadDatafile(Resource file, String path) { jsonData = jsonData + (!parentPath.isEmpty() ? ",\"directoryLabel\":\"" + parentPath + "\"}" : "}"); - } else { - jsonData = jsonData + "}"; + } + } else { + jsonData = jsonData + "}"; } meb.addTextBody("jsonData", jsonData);