Skip to content

Commit 23836ff

Browse files
authored
Fix zip build break (#11344)
1 parent 9f009df commit 23836ff

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

FirebaseStorage/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Unreleased
1+
# 10.11.0
22
- [added] Add progress tracking capability for `putDataAsync`, `putFileAsync`, and
33
`writeAsync`. (#10574)
44

FirebaseStorage/Sources/AsyncAwait.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ import Foundation
5151
func putDataAsync(_ uploadData: Data,
5252
metadata: StorageMetadata? = nil,
5353
onProgress: ((Progress?) -> Void)? = nil) async throws -> StorageMetadata {
54-
guard let onProgress else {
54+
guard let onProgress = onProgress else {
5555
return try await withCheckedThrowingContinuation { continuation in
5656
self.putData(uploadData, metadata: metadata) { result in
5757
continuation.resume(with: result)
@@ -88,7 +88,7 @@ import Foundation
8888
func putFileAsync(from url: URL,
8989
metadata: StorageMetadata? = nil,
9090
onProgress: ((Progress?) -> Void)? = nil) async throws -> StorageMetadata {
91-
guard let onProgress else {
91+
guard let onProgress = onProgress else {
9292
return try await withCheckedThrowingContinuation { continuation in
9393
self.putFile(from: url, metadata: metadata) { result in
9494
continuation.resume(with: result)
@@ -122,7 +122,7 @@ import Foundation
122122
/// - Returns: A `URL` pointing to the file path of the downloaded file.
123123
func writeAsync(toFile fileURL: URL,
124124
onProgress: ((Progress?) -> Void)? = nil) async throws -> URL {
125-
guard let onProgress else {
125+
guard let onProgress = onProgress else {
126126
return try await withCheckedThrowingContinuation { continuation in
127127
_ = self.write(toFile: fileURL) { result in
128128
continuation.resume(with: result)

0 commit comments

Comments
 (0)