Skip to content

Commit

Permalink
Merge pull request #1242 from Shopify/remove-as-bool
Browse files Browse the repository at this point in the history
Remove reference to asBool
  • Loading branch information
chrfalch authored Dec 27, 2022
2 parents c311ce2 + 68720e5 commit ffb2a94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/cpp/api/JsiSkPath.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class JsiSkPath : public JsiSkWrappingSharedPtrHostObject<SkPath> {
count > 1 && !arguments[1].isUndefined() && !arguments[1].isNull()
? JsiSkMatrix::fromValue(runtime, arguments[1])
: nullptr;
auto mode = count > 2 && arguments[2].asBool()
auto mode = count > 2 && arguments[2].isBool() && arguments[2].getBool()
? SkPath::kExtend_AddPathMode
: SkPath::kAppend_AddPathMode;
if (matrix == nullptr) {
Expand Down

0 comments on commit ffb2a94

Please sign in to comment.