Skip to content

Commit

Permalink
Merge pull request #7 from samnung/swift2-b4-changes
Browse files Browse the repository at this point in the history
Fix parsing values when valueMirror.children is empty
  • Loading branch information
terhechte committed Jan 30, 2016
2 parents cf6d228 + bec0c3e commit cdd79bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreValue/CoreValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ private func internalToObject<T: BoxingStruct>(context: NSManagedObjectContext?,
case (.Optional?, let child?):
result.setValue(child.value as? AnyObject, forKey: label)
break
case (.Collection?, _?):
case (.Collection?, _):
var objects: [NSManagedObject] = []
for (_, value) in valueMirror.children {
if let boxedValue = value as? BoxingStruct {
Expand Down

0 comments on commit cdd79bb

Please sign in to comment.