From 603367219d7440aa6f73a8e38fc73d7302f73c28 Mon Sep 17 00:00:00 2001 From: Shaw <784487301@qq.com> Date: Tue, 16 Jun 2020 17:27:32 +0800 Subject: [PATCH] Update rewriteframes.ts --- packages/integrations/src/rewriteframes.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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