From a96213f6ce5c402ce03989d5699b6d28f2438a68 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Sun, 19 Mar 2023 19:11:27 +0530 Subject: fix: inverted test in `Migrations#removeCurrentBranchValue` --- app/src/main/java/app/passwordstore/util/settings/Migrations.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/src') 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" } -- cgit v1.2.3