Skip to content

Commit b0dcf33

Browse files
committed
Fix ambiguous use error
1 parent ba578ec commit b0dcf33

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

FirebaseRemoteConfig/Tests/Swift/SwiftAPI/RemoteConfigConsole.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// limitations under the License.
1414

1515
import FirebaseCore
16+
import Foundation
1617

1718
class RemoteConfigConsole {
1819
private let projectID: String
@@ -166,7 +167,9 @@ class RemoteConfigConsole {
166167

167168
let semaphore = DispatchSemaphore(value: 0)
168169

169-
let task = URLSession.shared.dataTask(with: request) { data, response, error in
170+
let task: URLSessionDataTask = URLSession.shared.dataTask(
171+
with: request
172+
) { data, response, error in
170173
// Signal the semaphore when this scope is escaped.
171174
defer { semaphore.signal() }
172175

0 commit comments

Comments
 (0)