Skip to content

Commit

Permalink
chore: use String constructor instead of .toString for type conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
harryby1149 committed Sep 13, 2024
1 parent 3e4432d commit 1a2ff6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = class Layer {
}

for (const [key, value] of Object.entries(replace)) {
replace[key] = value.toString();
replace[key] = String(value);
}

replaced = toPath(replace);
Expand Down

0 comments on commit 1a2ff6c

Please sign in to comment.