Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit 1f7f843

Browse files
committed
Cleanup
1 parent 2fbbccd commit 1f7f843

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

CoreDataKit/Importing/NSAttributeDescription+Importing.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ extension NSAttributeDescription
1818
- returns: The transformed value or nil if the value can't for into this attribute
1919
*/
2020
func transformValue(value: AnyObject) -> AnyObject? {
21-
switch (attributeType) {
21+
switch attributeType {
2222
case .Integer16AttributeType:
2323
fallthrough
2424
case .Integer32AttributeType:

CoreDataKit/NSManagedObjectContext.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ extension NSManagedObjectContext
8080
let commitAction = block(self)
8181
self.undoManager?.endUndoGrouping()
8282

83-
switch (commitAction) {
83+
switch commitAction {
8484
case .DoNothing:
8585
completionHandler?(arg: { commitAction })
8686

CoreDataKit/NSPersistentStoreCoordinator.swift

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,11 @@ extension NSPersistentStoreCoordinator
2626
let _URL = optionalURL ?? NSPersistentStore.URLForSQLiteStoreName("CoreDataKit")
2727

2828
// Initialize coordinator if we have all data
29-
switch (_managedObjectModel, _URL) {
30-
case let (.Some(managedObjectModel), .Some(URL)):
29+
if let managedObjectModel = _managedObjectModel, URL = _URL {
3130
self.init(managedObjectModel: managedObjectModel)
3231
self.addSQLitePersistentStoreWithURL(URL, automigrating: automigrating, deleteOnMismatch: deleteOnMismatch)
33-
34-
default:
32+
}
33+
else {
3534
self.init()
3635
return nil
3736
}

0 commit comments

Comments
 (0)