Skip to content

Commit c4d6e48

Browse files
author
Julian Kast
committed
Removed unnecessary if statements in uploadFile and uploadFiles
1 parent 21450c4 commit c4d6e48

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

base/src/main/java/com/smartdevicelink/managers/file/BaseFileManager.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,6 @@ public void uploadFile(@NonNull final SdlFile file, final CompletionListener lis
329329
listener.onComplete(true);
330330
return;
331331
}
332-
// In sdl_ios: HAX: [#827](https://github.com/smartdevicelink/sdl_ios/issues/827) Older versions of Core had a bug where list files would cache incorrectly.
333-
// This led to attempted uploads failing due to the system thinking they were already there when they were not.
334-
if (!file.isPersistent() && !hasUploadedFile(file)) {
335-
file.setOverwrite(true);
336-
}
337332
if (!file.isOverwrite() && hasUploadedFile(file)) {
338333
Log.w(TAG, "Files that have already uploaded and have an Overwrite property set to false will not be re-Upload");
339334
listener.onComplete(true);
@@ -406,11 +401,6 @@ public void uploadFiles(@NonNull List<? extends SdlFile> files, final MultipleFi
406401
Log.w(TAG, "Static icons don't need to be uploaded");
407402
continue;
408403
}
409-
// In sdl_ios: HAX: [#827](https://github.com/smartdevicelink/sdl_ios/issues/827) Older versions of Core had a bug where list files would cache incorrectly.
410-
// This led to attempted uploads failing due to the system thinking they were already there when they were not.
411-
if (!file.isPersistent() && !hasUploadedFile(file)) {
412-
file.setOverwrite(true);
413-
}
414404
if (!file.isOverwrite() && hasUploadedFile(file)) {
415405
Log.w(TAG, "Files that have already uploaded and have an Overwrite property set to false will not be re-Upload");
416406
continue;

0 commit comments

Comments
 (0)