diff options
author | Harsh Shandilya <me@msfjarvis.dev> | 2022-09-01 12:04:20 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-01 06:34:20 +0000 |
commit | d640c397256b3c922976bfa71260dd3797922e01 (patch) | |
tree | 7f3b36a50c26fd70398808392ccb39b8478de55f /app/src/main/java | |
parent | 8908f88ddcd4d86437ef87da3a6343caa90d1f24 (diff) |
Fix reported Lint issues (#2101)
Diffstat (limited to 'app/src/main/java')
-rw-r--r-- | app/src/main/java/app/passwordstore/util/git/sshj/SshKey.kt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/util/git/sshj/SshKey.kt b/app/src/main/java/app/passwordstore/util/git/sshj/SshKey.kt index bfdf5a51..bdced9af 100644 --- a/app/src/main/java/app/passwordstore/util/git/sshj/SshKey.kt +++ b/app/src/main/java/app/passwordstore/util/git/sshj/SshKey.kt @@ -205,7 +205,7 @@ object SshKey { val sshKeyInputStream = context.contentResolver.openInputStream(uri) ?: throw IOException(context.getString(R.string.ssh_key_does_not_exist)) - val lines = sshKeyInputStream.bufferedReader().readLines() + val lines = sshKeyInputStream.use { `is` -> `is`.bufferedReader().readLines() } // The file must have more than 2 lines, and the first and last line must have private key // markers. |