Skip to content

Commit

Permalink
use return result async if needed where actual comment was 馃槢
Browse files Browse the repository at this point in the history
  • Loading branch information
designatednerd committed Sep 16, 2019
1 parent a1b2450 commit 8f24739
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Sources/Apollo/ApolloStore.swift
Expand Up @@ -55,12 +55,9 @@ public final class ApolloStore {
self.cacheLock.withWriteLock {
self.cache.clearPromise()
}.andThen {
guard let completion = completion else {
return
}
callbackQueue.async {
completion(.success(()))
}
DispatchQueue.apollo_returnResultAsyncIfNeeded(on: callbackQueue,
action: completion,
result: .success(()))
}
}
}
Expand Down

0 comments on commit 8f24739

Please sign in to comment.