Skip to content

Commit 236f8d7

Browse files
authored
ref: Remove unnecessary filename check in rewriteframes.ts (#2673)
1 parent 95b13d5 commit 236f8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/integrations/src/rewriteframes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class RewriteFrames implements Integration {
3030
// Check if the frame filename begins with `/` or a Windows-style prefix such as `C:\`
3131
const isWindowsFrame = /^[A-Z]:\\/.test(frame.filename);
3232
const startsWithSlash = /^\//.test(frame.filename);
33-
if (frame.filename && (isWindowsFrame || startsWithSlash)) {
33+
if (isWindowsFrame || startsWithSlash) {
3434
const filename = isWindowsFrame
3535
? frame.filename
3636
.replace(/^[A-Z]:/, '') // remove Windows-style prefix

0 commit comments

Comments
 (0)