From 49c1ec1be9b85ae850f456c8cc8d501998188b0f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abel=20Garci=CC=81a=20de=20Prada?= Date: Thu, 20 May 2021 14:02:05 +0200 Subject: [PATCH] Remove nullability from a variable --- .../android/lib/resources/files/RenameRemoteFileOperation.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt index 8669aded..c89e12e8 100644 --- a/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt +++ b/owncloudComLibrary/src/main/java/com/owncloud/android/lib/resources/files/RenameRemoteFileOperation.kt @@ -50,7 +50,7 @@ class RenameRemoteFileOperation( isFolder: Boolean, ) : RemoteOperation() { - private var newRemotePath: String? = null + private var newRemotePath: String init { var parent = (File(oldRemotePath)).parent!! @@ -75,7 +75,6 @@ class RenameRemoteFileOperation( val moveMethod: MoveMethod = MoveMethod( url = URL(client.userFilesWebDavUri.toString() + WebdavUtils.encodePath(oldRemotePath)), destinationUrl = client.userFilesWebDavUri.toString() + WebdavUtils.encodePath(newRemotePath), - forceOverride = false ).apply { setReadTimeout(RENAME_READ_TIMEOUT, TimeUnit.MILLISECONDS) setConnectionTimeout(RENAME_CONNECTION_TIMEOUT, TimeUnit.MILLISECONDS)