Skip to content

Commit

Permalink
Fix kotlin spotless check
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Jan 11, 2024
1 parent fb9481d commit c396d2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,10 @@ class FileDownloadWorker(

private fun getFiles(): List<OCFile> {
val remotePath = inputData.keyValueMap[FILE_REMOTE_PATH] as String?
val file = fileDataStorageManager?.getFileByEncryptedRemotePath(remotePath) ?: return listOf()
val file = fileDataStorageManager?.getFileByEncryptedRemotePath(remotePath) ?: return listOf()

return if (file.isFolder) {
fileDataStorageManager?.getAllFilesRecursivelyInsideFolder(file) ?: listOf()
fileDataStorageManager?.getAllFilesRecursivelyInsideFolder(file) ?: listOf()
} else {
listOf(file)
}
Expand Down

0 comments on commit c396d2a

Please sign in to comment.