Skip to content

Commit 0daf61a

Browse files
Test quota
Signed-off-by: tobiasKaminsky <[email protected]>
1 parent 6376984 commit 0daf61a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

library/src/main/java/com/owncloud/android/lib/resources/files/CheckEnoughQuotaRemoteOperation.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import java.io.IOException
4646
class CheckEnoughQuotaRemoteOperation(val path: String, private val fileSize: Long) :
4747
RemoteOperation<Boolean>() {
4848

49+
@Deprecated("Deprecated in Java")
4950
@Suppress("Detekt.ReturnCount")
5051
override fun run(client: OwnCloudClient): RemoteOperationResult<Boolean> {
5152
var propfind: PropFindMethod? = null
@@ -84,7 +85,7 @@ class CheckEnoughQuotaRemoteOperation(val path: String, private val fileSize: Lo
8485
}
8586

8687
private fun isSuccess(quota: Long) : Boolean {
87-
retunr quota >= fileSize ||
88+
return quota >= fileSize ||
8889
quota == UNKNOWN_FREE_SPACE ||
8990
quota == UNCOMPUTED_FREE_SPACE ||
9091
quota == UNLIMITED_FREE_SPACE

0 commit comments

Comments
 (0)