Skip to content

Commit 66fa665

Browse files
committed
Remove sq tests
1 parent d79b327 commit 66fa665

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pass-core-file-service/src/main/java/org/eclipse/pass/file/service/storage/FileStorageService.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,6 @@ public StorageFile storeFile(MultipartFile mFile, String userName) throws IOExce
116116
String fileExt = FilenameUtils.getExtension(origFileNameExt);
117117
String fileUuid = UUID.randomUUID().toString();
118118
String fileId = fileUuid + "/" + origFileNameExt;
119-
//TODO: add new line for sonar qube testing
120-
fileId = "";
121-
fileId = fileUuid + "/" + origFileNameExt;
122-
//REMOVE WHEN DONE TEST
123119
String mimeType = URLConnection.guessContentTypeFromName(origFileNameExt);
124120
//changing the stored file name to UUID to prevent any issues with long file names
125121
//e.g. 260 char limit on the path in Windows. Original filename is preserved in the fileId.
@@ -128,9 +124,6 @@ public StorageFile storeFile(MultipartFile mFile, String userName) throws IOExce
128124

129125
//Create OCFL user to identify the owner of the file
130126
User fileUser = new User();
131-
//TODO: add new line for sonar qube testing
132-
fileUser.setName("test name");
133-
//REMOVE WHEN DONE TEST
134127
fileUser.setName(userName);
135128

136129
if (!Files.exists(pathTempLoc)) {

0 commit comments

Comments
 (0)