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 <targos@protonmail.com>
Reviewed-By: Zeyu Yang <himself65@outlook.com>
Reviewed-By: Andrey Pechkurov <apechkurov@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • 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.