Skip to content

Commit 7376d39

Browse files
committed
add return
1 parent 610f7e3 commit 7376d39

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SwiftDraw/LayerTree.CommandGenerator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,9 @@ extension LayerTree {
315315
guard !shapes.isEmpty else { return [] }
316316
let paths = shapes.map { clip in
317317
if clip.transform == .identity {
318-
provider.createPath(from: clip.shape)
318+
return provider.createPath(from: clip.shape)
319319
} else {
320-
provider.createPath(from: .path(clip.shape.path.applying(matrix: clip.transform)))
320+
return provider.createPath(from: .path(clip.shape.path.applying(matrix: clip.transform)))
321321
}
322322
}
323323
let clipPath = provider.createPath(from: paths)

0 commit comments

Comments
 (0)