Skip to content

Commit

Permalink
Merge Apollo PR: "Update for compatibility with Swift5" (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
palpatim authored Jan 30, 2019
1 parent da40e48 commit 509ab84
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions AWSAppSyncClient/Apollo/Sources/Apollo/Collections.swift
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
extension Dictionary {
subscript(key: Key, withDefault value: @autoclosure () -> Value) -> Value {
mutating get {
if self[key] == nil {
self[key] = value()
}
return self[key]!
}
set {
self[key] = newValue
}
}
}

public extension Dictionary {
static func += (lhs: inout Dictionary, rhs: Dictionary) {
#if swift(>=3.2)
Expand Down Expand Up @@ -58,7 +44,7 @@ extension GroupedSequence: Sequence {
struct GroupedSequenceIterator<Key: Equatable, Value>: IteratorProtocol {
private var base: GroupedSequence<Key, Value>

private var keyIterator: EnumeratedIterator<IndexingIterator<Array<Key>>>
private var keyIterator: EnumeratedSequence<Array<Key>>.Iterator

init(base: GroupedSequence<Key, Value>) {
self.base = base
Expand Down

0 comments on commit 509ab84

Please sign in to comment.