project-imas / encrypted-core-data

v2.0 - iOS Core Data encrypted SQLite store using SQLCipher
Other
785 stars 236 forks source link

EncryptedStore: Fixed not throwing error in Swift #315

Open scottlevie opened 5 years ago

scottlevie commented 5 years ago

• When an Objective-C method ends with a parameter that is a pointer to an error, it is imported to Swift as a method that throws. However, the error will only be thrown if the return value is either nil or false. All the public methods ending with an error pointer parameter were checked for this flaw. Only these three needed correction: