Skip to content

Commit

Permalink
Remove extra optional chain
Browse files Browse the repository at this point in the history
Signed-off-by: Kaung Zin Hein <[email protected]>
  • Loading branch information
Zen-cronic committed Sep 18, 2024
1 parent c141bd8 commit fbcc140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/utils/breadcrumbsUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type { Breadcrumb } from '@sentry/types';
* @param breadcrumb
*/
export function assignBreadcrumbLogLevel(breadcrumb: Breadcrumb): Breadcrumb {
const statusCode = breadcrumb?.data?.status_code;
const statusCode = breadcrumb.data?.status_code;
if (typeof statusCode !== 'number') {
return breadcrumb;
}
Expand Down

0 comments on commit fbcc140

Please sign in to comment.