Skip to content

Commit

Permalink
fastHashObject: change undefined check
Browse files Browse the repository at this point in the history
  • Loading branch information
yosiat committed Oct 27, 2023
1 parent 3776b1d commit aa7ec23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function fastHashObject(keys, labels) {
for (let i = 0; i < keys.length; i++) {
const key = keys[i];
const value = labels[key];
if (typeof value === 'undefined') continue;
if (value === undefined) continue;

hash += `${key}:${value},`;
}
Expand Down

0 comments on commit aa7ec23

Please sign in to comment.