Skip to content

Commit fbcc140

Browse files
committed
Remove extra optional chain
Signed-off-by: Kaung Zin Hein <[email protected]>
1 parent c141bd8 commit fbcc140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/utils/breadcrumbsUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { Breadcrumb } from '@sentry/types';
55
* @param breadcrumb
66
*/
77
export function assignBreadcrumbLogLevel(breadcrumb: Breadcrumb): Breadcrumb {
8-
const statusCode = breadcrumb?.data?.status_code;
8+
const statusCode = breadcrumb.data?.status_code;
99
if (typeof statusCode !== 'number') {
1010
return breadcrumb;
1111
}

0 commit comments

Comments
 (0)