From 30151d799aefdf0082e666fa0379f5d830ba96c8 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 25 Sep 2024 22:16:57 +0200 Subject: sftp: Use val when possible --- libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt b/libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt index 9f05138..5809186 100644 --- a/libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt +++ b/libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt @@ -14,7 +14,7 @@ internal class SftpConnection(uri: Uri, credentials: SftpCredentials) { val error: String get() = if (destroyed) "[destroyed]" else { - var err = sftpSession?.lastError() + val err = sftpSession?.lastError() if (err.isNullOrEmpty()) sshSession.lastError() else err } -- cgit v1.2.3-70-g09d2