1
0
mirror of https://github.com/owncloud/android-library.git synced 2025-06-07 16:06:08 +00:00

Remove nullability from a variable

This commit is contained in:
Abel García de Prada 2021-05-20 14:02:05 +02:00 committed by Abel García de Prada
parent ad56db8d66
commit 49c1ec1be9

View File

@ -50,7 +50,7 @@ class RenameRemoteFileOperation(
isFolder: Boolean,
) : RemoteOperation<Unit>() {
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)