diff --git a/packages/integrations/src/rewriteframes.ts b/packages/integrations/src/rewriteframes.ts index 6acedb8008d7..58613776a330 100644 --- a/packages/integrations/src/rewriteframes.ts +++ b/packages/integrations/src/rewriteframes.ts @@ -30,7 +30,7 @@ export class RewriteFrames implements Integration { // Check if the frame filename begins with `/` or a Windows-style prefix such as `C:\` const isWindowsFrame = /^[A-Z]:\\/.test(frame.filename); const startsWithSlash = /^\//.test(frame.filename); - if (frame.filename && (isWindowsFrame || startsWithSlash)) { + if (isWindowsFrame || startsWithSlash) { const filename = isWindowsFrame ? frame.filename .replace(/^[A-Z]:/, '') // remove Windows-style prefix