We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e300fb8 commit 481b7c3Copy full SHA for 481b7c3
1 file changed
app/src/main/java/com/nextcloud/client/database/entity/UploadEntity.kt
@@ -66,8 +66,8 @@ fun UploadEntity.toOCUpload(capability: OCCapability? = null): OCUpload? {
66
val upload = try {
67
OCUpload(localPath, remotePath, accountName)
68
} catch (_: IllegalArgumentException) {
69
- null
70
- } ?: return null
+ return null
+ }
71
72
fileSize?.let { upload.fileSize = it }
73
id?.let { upload.uploadId = it.toLong() }
0 commit comments