fix: inverted test in Migrations#removeCurrentBranchValue

This commit is contained in:
Harsh Shandilya
2023-03-19 19:11:27 +05:30
parent 9a0e28cc0a
commit a96213f6ce

View File

@@ -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" }