Skip to content

Commit 45490df

Browse files
authored
refactor: replace let with const (#158)
1 parent 40387a0 commit 45490df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/color-convert/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ export const rgbStringToHsva = rgbaStringToHsva;
186186

187187
/** Converts an RGBA color plus alpha transparency to hex */
188188
export const rgbaToHex = ({ r, g, b }: RgbaColor): string => {
189-
let bin = (r << 16) | (g << 8) | b;
189+
const bin = (r << 16) | (g << 8) | b;
190190
return `#${((h) => new Array(7 - h.length).join('0') + h)(bin.toString(16))}`;
191191
};
192192

0 commit comments

Comments
 (0)