Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle coercion of AnyHashable #61

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix missing return statement
  • Loading branch information
AnthonyMDev committed Oct 5, 2023
commit 9b63469134433a2f88d54277fbc79f61df75989a
4 changes: 2 additions & 2 deletions apollo-ios/Sources/ApolloAPI/DataDict.swift
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,9 @@ extension Array: SelectionSetEntityValue where Element: SelectionSetEntityValue
}
self = data.map {
if DataDict._AnyHashableCanBeCoerced {
Element.init(_fieldData:$0)
return Element.init(_fieldData:$0)
} else {
Element.init(_fieldData:$0?.base as? AnyHashable)
return Element.init(_fieldData:$0?.base as? AnyHashable)
}
}
}
Expand Down
Loading