Skip to content

Commit 91588da

Browse files
antonisclaude
andcommitted
style(core): Reformat touchevents.tsx with oxfmt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6b849e2 commit 91588da

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/core/src/js/touchevents.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -325,12 +325,12 @@ function getFileName(props: Record<string, unknown>): string | undefined {
325325
function getLabelValue(props: Record<string, unknown>, labelKey: string | undefined): string | undefined {
326326
return typeof props[SENTRY_LABEL_PROP_KEY] === 'string' && props[SENTRY_LABEL_PROP_KEY].length > 0
327327
? props[SENTRY_LABEL_PROP_KEY]
328-
// For some reason type narrowing doesn't work as expected with indexing when checking it all in one go in
329-
// the "check-label" if sentence, so we have to assign it to a variable here first
330-
// oxlint-disable-next-line typescript-eslint(no-unnecessary-type-assertion)
331-
: typeof labelKey === 'string' && typeof props[labelKey] == 'string' && (props[labelKey] as string).length > 0
328+
: // For some reason type narrowing doesn't work as expected with indexing when checking it all in one go in
329+
// the "check-label" if sentence, so we have to assign it to a variable here first
332330
// oxlint-disable-next-line typescript-eslint(no-unnecessary-type-assertion)
333-
? (props[labelKey] as string)
331+
typeof labelKey === 'string' && typeof props[labelKey] == 'string' && (props[labelKey] as string).length > 0
332+
? // oxlint-disable-next-line typescript-eslint(no-unnecessary-type-assertion)
333+
(props[labelKey] as string)
334334
: undefined;
335335
}
336336

0 commit comments

Comments
 (0)