Skip to content

Commit

Permalink
refactor: Simplify QLThumbnailGenerator.thumbnailRepresentation imp…
Browse files Browse the repository at this point in the history
…lementation (#123)
  • Loading branch information
jbmorley authored Dec 15, 2024
1 parent e628693 commit 9c2b46f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions Sources/Interact/Extensions/QLThumbnailGenerator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@ extension QLThumbnailGenerator {
size: CGSize,
scale: CGFloat,
iconMode: Bool) async throws -> QLThumbnailRepresentation {
let request = QLThumbnailGenerator.Request(fileAt: url,
size: size,
scale: scale,
representationTypes: .thumbnail)
let request = Request(fileAt: url, size: size, scale: scale, representationTypes: .thumbnail)
request.iconMode = iconMode
return try await withTaskCancellationHandler {
try await withCheckedThrowingContinuation { continuation in
Expand Down

0 comments on commit 9c2b46f

Please sign in to comment.