Skip to content

Commit 385339e

Browse files
committed
chore: small refactor
1 parent 486152a commit 385339e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/canvas.ios.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1779,13 +1779,15 @@ export class Canvas implements ICanvas {
17791779
}
17801780
private _drawPath(paint: Paint, ctx, path?) {
17811781
let bPath: UIBezierPath;
1782-
let cgPath = path;
1782+
let cgPath;
17831783
if (path instanceof Path) {
17841784
bPath = path.getBPath();
17851785
cgPath = path.getCGPath();
17861786
} else if (path instanceof UIBezierPath) {
17871787
bPath = path;
17881788
cgPath = bPath.CGPath;
1789+
} else {
1790+
cgPath = path;
17891791
}
17901792
function createBPath() {
17911793
if (!bPath) {

0 commit comments

Comments
 (0)