From 49e6e3e824eb3201908d623d201ab08fb03b0e6e Mon Sep 17 00:00:00 2001 From: CPatchane Date: Tue, 2 Jan 2024 21:13:15 +0100 Subject: [PATCH] Remove the existence check --- src/Context.ts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/Context.ts b/src/Context.ts index ef75ca2a..766958f5 100644 --- a/src/Context.ts +++ b/src/Context.ts @@ -592,12 +592,14 @@ export class Context { * @method * @name Konva.Context#roundRect */ - roundRect(x: number, y: number, width: number, height: number, radii: number) { - if (this._context.roundRect) { - this._context.roundRect(x, y, width, height, radii); - } else { - this._context.rect(x, y, width, height); - } + roundRect( + x: number, + y: number, + width: number, + height: number, + radii: number + ) { + this._context.roundRect(x, y, width, height, radii); } /** * putImageData function.