aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorrenovate[bot] <29139614+renovate[bot]@users.noreply.github.com>2023-09-18 18:15:11 +0000
committerGitHub <noreply@github.com>2023-09-18 18:15:11 +0000
commit932971017832fb6a514a262b8efc4200e1bff830 (patch)
tree0c915be3f67b6b85871a06d016d5876544816390 /app/src/main
parent0fe88455ae74dd5f0f13bddad8a10a7bcf19dd1d (diff)
fix(deps): update dependency com.facebook:ktfmt to v0.45 (#2687)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/app/passwordstore/util/git/sshj/SshKey.kt3
-rw-r--r--app/src/main/java/app/passwordstore/util/services/OreoAutofillService.kt3
2 files changed, 2 insertions, 4 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 2251f72b..b72fc58b 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
@@ -197,8 +197,7 @@ object SshKey {
// Cursor returns only a single row.
cursor.moveToFirst()
cursor.getInt(0)
- }
- ?: throw IOException(context.getString(R.string.ssh_key_does_not_exist))
+ } ?: throw IOException(context.getString(R.string.ssh_key_does_not_exist))
// We assume that an SSH key's ideal size is > 0 bytes && < 100 kilobytes.
if (fileSize > 100_000 || fileSize == 0)
diff --git a/app/src/main/java/app/passwordstore/util/services/OreoAutofillService.kt b/app/src/main/java/app/passwordstore/util/services/OreoAutofillService.kt
index 60891367..6a9cea8d 100644
--- a/app/src/main/java/app/passwordstore/util/services/OreoAutofillService.kt
+++ b/app/src/main/java/app/passwordstore/util/services/OreoAutofillService.kt
@@ -165,6 +165,5 @@ fun Context.getCustomSuffixes(): Sequence<String> {
return sharedPrefs
.getString(PreferenceKeys.OREO_AUTOFILL_CUSTOM_PUBLIC_SUFFIXES)
?.splitToSequence('\n')
- ?.filter { it.isNotBlank() && it.first() != '.' && it.last() != '.' }
- ?: emptySequence()
+ ?.filter { it.isNotBlank() && it.first() != '.' && it.last() != '.' } ?: emptySequence()
}