Skip to content

Commit

Permalink
hashObject: remove useless keys assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
yosiat committed Oct 27, 2023
1 parent 09d4c49 commit 19bc8d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,9 @@ function hashObject(labels, labelNames) {
return fastHashObject(labelNames, labels);
}

let keys = Object.keys(labels);
const keys = Object.keys(labels);
if (keys.length > 1) {
keys = keys.sort(); // need consistency across calls
keys.sort(); // need consistency across calls
}

return fastHashObject(keys, labels);
Expand Down

0 comments on commit 19bc8d3

Please sign in to comment.