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 targos committed May 13, 2020
1 parent 26fdc64 commit 8dcb22f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/perf_hooks.js
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 8dcb22f

Please sign in to comment.