Skip to content

Commit

Permalink
chore: minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Desu Sai Venkat committed Oct 3, 2023
1 parent 8716c0e commit a11cf4a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Sources/Classes/RSDBPersistentManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -79,17 +79,13 @@ - (void)createDB:(RSDBEncryption * __nullable)dbEncryption {
// open unencrypted database
[self openUnencryptedDB];
}
return;
}

} else if (isEncryptedDBExists) {
// when only encrypted db exists
if (isEncryptedDBExists) {
[self handleWhenEncryptedDBExists:dbEncryption isEncryptionNeeded:isEncryptionNeeded];
return;
} else {
// when only unencrypted db exists
[self handleWhenUnencryptedDBExists:dbEncryption isEncryptionNeeded:isEncryptionNeeded];
}

// when only unencrypted db exists
[self handleWhenUnencryptedDBExists:dbEncryption isEncryptionNeeded:isEncryptionNeeded];
}

- (BOOL)isEncryptionNeeded:(RSDBEncryption * __nullable)dbEncryption {
Expand Down

0 comments on commit a11cf4a

Please sign in to comment.