Skip to content

Commit

Permalink
Ensuring completionBlock is called in all paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
rnine committed Sep 20, 2021
1 parent 2794b0c commit d1a98f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,13 @@ private extension ImagePickerUploadController {

group.wait()

self.completionBlock?(urls)
self.upload(urls: urls)
}
}

func upload(urls: [URL]) {
completionBlock?(urls)

guard let uploader = uploader else { return }

trackingProgress.update(tracked: uploader.progress, delay: 1)
Expand Down

0 comments on commit d1a98f2

Please sign in to comment.