summaryrefslogtreecommitdiff
path: root/libs/sftp/src/main/java/org
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2024-09-25 22:16:57 +0200
committerJoel Klinghed <the_jk@spawned.biz>2024-09-25 22:16:57 +0200
commit30151d799aefdf0082e666fa0379f5d830ba96c8 (patch)
treed98c263a560d746a2ba9e036e2034d238a49600a /libs/sftp/src/main/java/org
parentf03c738a9e39053ad185084bf83bf6e526011b71 (diff)
sftp: Use val when possible
Diffstat (limited to 'libs/sftp/src/main/java/org')
-rw-r--r--libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt2
1 files changed, 1 insertions, 1 deletions
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
}