Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
docs(storage-swift) got rid of some bad syntax that snuck in for the documents
  • Loading branch information
bmalumphy committed Apr 1, 2023
1 parent 9ea9e3e commit f6299ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ guard let url = try? await storageClient?.createSignedURL(path: imageUrl, expire
return
}
DispatchQueue.main.async {
let data = try? Data(contentsOf: url!) //make sure your image in this url does exist, otherwise unwrap in a if let check / try-catch
self.imageView.image = UIImage(data: data!)
guard let data = try? Data(contentsOf: url) else { return }
self.imageView.image = UIImage(data: data)
}
```

Expand Down

0 comments on commit f6299ff

Please sign in to comment.