You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
During my Unit Tests I had some crashes that are caused by an error during CoreData save
public func save() {
try! persistentStore.save()
}
I saw plenty of places in the SynchronizationManager where error handling is ignored / disabled by the usage of try!.
Why don't you properly use do-catch or just try?.
But try! should only be used if you're certain that there is no error thrown
During my Unit Tests I had some crashes that are caused by an error during CoreData save
I saw plenty of places in the
SynchronizationManager
where error handling is ignored / disabled by the usage oftry!
.Why don't you properly use
do-catch
or justtry?
.But
try!
should only be used if you're certain that there is no error thrownSee: #26
The text was updated successfully, but these errors were encountered: