0
0
mirror of https://github.com/nodejs/node.git synced 2024-12-01 16:10:02 +01:00

perf_hooks: remove unnecessary assignment when name is undefined

PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
rickyes 2020-04-18 14:24:46 +08:00 committed by Andrey Pechkurov
parent 3664807fc0
commit f250adb28f

View File

@ -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 {