Skip to content

Commit

Permalink
perf_hooks: remove unnecessary assignment when name is undefined
Browse files Browse the repository at this point in the history
PR-URL: #32910
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Zeyu Yang <[email protected]>
Reviewed-By: Andrey Pechkurov <[email protected]>
Reviewed-By: Colin Ihrig <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
rickyes authored and puzpuzpuz committed Apr 20, 2020
1 parent 3664807 commit f250adb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/perf_hooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,8 @@ class Performance {
}

clearMarks(name) {
name = name !== undefined ? `${name}` : name;
if (name !== undefined) {
name = `${name}`;
this[kIndex][kMarks].delete(name);
_clearMark(name);
} else {
Expand Down

0 comments on commit f250adb

Please sign in to comment.