Skip to content

Commit

Permalink
ref: Remove unnecessary filename check in rewriteframes.ts (#2673)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxiaojx committed Jun 16, 2020
1 parent 95b13d5 commit 236f8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/src/rewriteframes.ts
Expand Up @@ -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
Expand Down

0 comments on commit 236f8d7

Please sign in to comment.