Skip to content

Commit

Permalink
fix: fixed issue of using default provider to decrypt when encryption…
Browse files Browse the repository at this point in the history
… is disabled
  • Loading branch information
Desu Sai Venkat committed Oct 5, 2023
1 parent 7a25cea commit 6f99ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Classes/RSDBPersistentManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ - (instancetype)initWithDBEncryption:(RSDBEncryption * __nullable)dbEncryption {
}

- (id<RSDatabaseProvider>)getDatabaseProvider:(RSDBEncryption * __nullable)dbEncryption {
if (dbEncryption == nil || !dbEncryption.enable) {
if (dbEncryption == nil) {
return [RSDefaultDatabaseProvider new];
} else {
return dbEncryption.databaseProvider;
Expand Down

0 comments on commit 6f99ad8

Please sign in to comment.