Skip to content

Commit

Permalink
fix(tracing-internal): fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LubomirIgonda1 committed Dec 6, 2024
1 parent 78892ad commit 0e9c7f6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/tracing-internal/src/node/integrations/express.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,14 @@ export const extractOriginalRoute = (
regexp?: Layer['regexp'],
keys?: Layer['keys'],
): string | undefined => {
if (!path || !regexp || !keys || Object.keys(keys).length === 0 || keys[0]?.offset === undefined || keys[0]?.offset === null) {
if (
!path ||
!regexp ||
!keys ||
Object.keys(keys).length === 0 ||
keys[0]?.offset === undefined ||
keys[0]?.offset === null
) {
return undefined;
}
const orderedKeys = keys.sort((a, b) => a.offset - b.offset);
Expand Down

0 comments on commit 0e9c7f6

Please sign in to comment.