Skip to content

Commit cf0f045

Browse files
committed
chore: 'try' precede 'await' in ImagePickerImpl.swift
1 parent abc016b commit cf0f045

File tree

1 file changed

+1
-1
lines changed
  • packages/image_picker/image_picker_macos/macos/image_picker_macos/Sources/image_picker_macos

1 file changed

+1
-1
lines changed

packages/image_picker/image_picker_macos/macos/image_picker_macos/Sources/image_picker_macos/ImagePickerImpl.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ class PickVideoHandler {
472472
let tempVideoUrl = FileManager.default.temporaryDirectory.appendingPathComponent(
473473
tempVideoFileName)
474474

475-
let videoData = await try itemProvider.loadDataRepresentation(for: videoType)
475+
let videoData = try await itemProvider.loadDataRepresentation(for: videoType)
476476
try videoData.write(to: tempVideoUrl)
477477

478478
let tempVideoPath = tempVideoUrl.pathString()

0 commit comments

Comments
 (0)