diff --git a/packages/carbon/src/utils.ts b/packages/carbon/src/utils.ts index 7f507360..786e6208 100644 --- a/packages/carbon/src/utils.ts +++ b/packages/carbon/src/utils.ts @@ -56,11 +56,9 @@ export function valueToUint8Array( return new TextEncoder().encode(value) } - try { - if (Buffer.isBuffer(value)) { - return new Uint8Array(value) - } - } catch (_) {} + if (Buffer.isBuffer(value)) { + return new Uint8Array(value) + } if (value instanceof ArrayBuffer) { return new Uint8Array(value) }