Skip to content

Commit

Permalink
chore: 'try' precede 'await' in ImagePickerImpl.swift
Browse files Browse the repository at this point in the history
Signed-off-by: Ellet <echo.ellet@gmail.com>
  • Loading branch information
EchoEllet committed Dec 13, 2024
1 parent aa7383f commit 74a0344
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ class PickVideoHandler {
let tempVideoUrl = FileManager.default.temporaryDirectory.appendingPathComponent(
tempVideoFileName)

let videoData = await try itemProvider.loadDataRepresentation(for: videoType)
let videoData = try await itemProvider.loadDataRepresentation(for: videoType)
try videoData.write(to: tempVideoUrl)

let tempVideoPath = tempVideoUrl.pathString()
Expand Down

0 comments on commit 74a0344

Please sign in to comment.