Skip to content

Commit 481b7c3

Browse files
Apply suggestion from @ZetaTom
Co-authored-by: Tom <70907959+ZetaTom@users.noreply.github.com> Signed-off-by: Alper Öztürk <67455295+alperozturk96@users.noreply.github.com>
1 parent e300fb8 commit 481b7c3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/src/main/java/com/nextcloud/client/database/entity/UploadEntity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ fun UploadEntity.toOCUpload(capability: OCCapability? = null): OCUpload? {
6666
val upload = try {
6767
OCUpload(localPath, remotePath, accountName)
6868
} catch (_: IllegalArgumentException) {
69-
null
70-
} ?: return null
69+
return null
70+
}
7171

7272
fileSize?.let { upload.fileSize = it }
7373
id?.let { upload.uploadId = it.toLong() }

0 commit comments

Comments
 (0)