aboutsummaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2023-03-19 19:11:27 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2023-03-19 19:11:27 +0530
commita96213f6ce5c402ce03989d5699b6d28f2438a68 (patch)
treea8e39b9383d9a6067bdf54a547f66e0d9fad87f9 /app/src/main
parent9a0e28cc0a8ebdff8f72103cfd3749fd390379e1 (diff)
fix: inverted test in `Migrations#removeCurrentBranchValue`
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/app/passwordstore/util/settings/Migrations.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/util/settings/Migrations.kt b/app/src/main/java/app/passwordstore/util/settings/Migrations.kt
index 19aae6c7..848b3bd9 100644
--- a/app/src/main/java/app/passwordstore/util/settings/Migrations.kt
+++ b/app/src/main/java/app/passwordstore/util/settings/Migrations.kt
@@ -31,7 +31,7 @@ fun runMigrations(filesDirPath: String, sharedPrefs: SharedPreferences, gitSetti
}
fun removeCurrentBranchValue(sharedPrefs: SharedPreferences) {
- if (sharedPrefs.contains(PreferenceKeys.GIT_BRANCH_NAME)) {
+ if (!sharedPrefs.contains(PreferenceKeys.GIT_BRANCH_NAME)) {
return
}
logcat(TAG, INFO) { "Deleting now unused branch name preference" }