Skip to content

Commit cae1a5c

Browse files
authored
chore: lint fix (#83)
1 parent ea19885 commit cae1a5c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/core/util/hash_code.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
21
export function hashCode(text: string, hash: number = 0) {
32
if (text.length === 0) return hash;
43
for (let i = 0; i < text.length; i++) {
54
const chr = text.charCodeAt(i);
6-
hash = ((hash << 5) - hash) + chr;
5+
hash = (hash << 5) - hash + chr;
76
hash |= 0; // Convert to 32bit integer
87
}
98
return Number(Math.abs(hash)).toString(36);

src/testing/expect-dom.unit.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ function toHTML(node: any) {
9595
}
9696
}
9797

98-
99-
100-
10198
describe('expect-dom', () => {
10299
it('should match element', () => {
103100
expectDOM(toDOM('<span></span>'), <span></span>);

0 commit comments

Comments
 (0)