Skip to content

Commit 2bb22e0

Browse files
committed
Remove unused erorr code variable
1 parent 9ad2057 commit 2bb22e0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/node_jsrtapi.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1365,7 +1365,7 @@ napi_status napi_is_buffer(napi_env e, napi_value v, bool* result) {
13651365
return napi_ok;
13661366
}
13671367
JsTypedArrayType arrayType;
1368-
JsErrorCode code = JsGetTypedArrayInfo(typedArray, &arrayType, nullptr, nullptr, nullptr);
1368+
CHECK_JSRT(JsGetTypedArrayInfo(typedArray, &arrayType, nullptr, nullptr, nullptr));
13691369
*result = (arrayType == JsArrayTypeUint8);
13701370
return napi_ok;
13711371
}

0 commit comments

Comments
 (0)