diff options
| author | Joel Klinghed <the_jk@spawned.biz> | 2024-09-25 22:16:57 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@spawned.biz> | 2024-09-25 22:16:57 +0200 |
| commit | 30151d799aefdf0082e666fa0379f5d830ba96c8 (patch) | |
| tree | d98c263a560d746a2ba9e036e2034d238a49600a /libs/sftp | |
| parent | f03c738a9e39053ad185084bf83bf6e526011b71 (diff) | |
sftp: Use val when possible
Diffstat (limited to 'libs/sftp')
| -rw-r--r-- | libs/sftp/src/main/java/org/the_jk/cleversync/io/sftp/SftpConnection.kt | 2 |
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 } |
