Skip to content

Commit 27ca2df

Browse files
committed
Simplify null/undefined check
1 parent e5aff39 commit 27ca2df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source-map-support.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ function wrapCallSite(frame, state) {
373373
frame = cloneCallSite(frame);
374374
var originalFunctionName = frame.getFunctionName;
375375
frame.getFunctionName = function() {
376-
if (state.nextPosition === null || state.nextPosition === undefined) {
376+
if (state.nextPosition == null) {
377377
return originalFunctionName();
378378
}
379379
return state.nextPosition.name || originalFunctionName();

0 commit comments

Comments
 (0)