Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonjs committed Oct 4, 2024
1 parent 83ed881 commit 5c9c583
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/SJSAssetExportSession/SampleWriter.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ actor SampleWriter {
) async throws {
precondition(!videoOutputSettings.isEmpty)

let duration =
if let timeRange { timeRange.duration } else { try await asset.load(.duration) }
let duration = if let timeRange {
timeRange.duration
} else {
try await asset.load(.duration)
}
let reader = try AVAssetReader(asset: asset)
if let timeRange {
reader.timeRange = timeRange
Expand Down

0 comments on commit 5c9c583

Please sign in to comment.