mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-25 07:14:00 +08:00
optional chain
This commit is contained in:
parent
da61bfb83c
commit
9acd68e99f
1 changed files with 1 additions and 1 deletions
|
@ -194,6 +194,6 @@ export function recordAuthTime(
|
|||
path: string,
|
||||
time: number
|
||||
): void {
|
||||
const pathNoGet = path.replace(/\?.*/, "");
|
||||
const pathNoGet = path?.replace(/\?.*/, "");
|
||||
authTime.observe({ type, status, path: pathNoGet }, time);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue