Skip to content

Commit 076f754

Browse files
authored
fix(core): Remove optional chaining usage (#5304)
Remove optional chaining usage. This should mean we don't import the optional chaining polyfill into the browser bundle any more.
1 parent f9e320e commit 076f754

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/core/src/baseclient.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,10 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
291291
for (const attachment of hint.attachments || []) {
292292
env = addItemToEnvelope(
293293
env,
294-
createAttachmentEnvelopeItem(attachment, this._options.transportOptions?.textEncoder),
294+
createAttachmentEnvelopeItem(
295+
attachment,
296+
this._options.transportOptions && this._options.transportOptions.textEncoder,
297+
),
295298
);
296299
}
297300

0 commit comments

Comments
 (0)