Skip to content

Commit 331a4e2

Browse files
committed
Format
1 parent 3f52a90 commit 331a4e2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/app/Utils.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ export function generateColor() {
5252
}
5353

5454
function intToUnsigned(n: number) {
55-
n |= 0; // Force to signed 32-bit integer
56-
return n < 0 ? n + 0x100000000 : n;
55+
n |= 0 // Force to signed 32-bit integer
56+
return n < 0 ? n + 0x100000000 : n
5757
}
5858

5959
export function intToHexRgb(c: number | undefined) {
60-
return c ? '#' + (c & 0xFFFFFF).toString(16).padStart(6, '0') : '#000000';
60+
return c ? '#' + (c & 0xFFFFFF).toString(16).padStart(6, '0') : '#000000'
6161
}
6262

6363
export function intToDisplayHexRgb(c: number | undefined) {
64-
return c ? '#' + intToUnsigned(c).toString(16).toUpperCase().padStart(6, '0') : '#000000';
64+
return c ? '#' + intToUnsigned(c).toString(16).toUpperCase().padStart(6, '0') : '#000000'
6565
}
6666

6767
export function htmlEncode(str: string) {

0 commit comments

Comments
 (0)