Skip to content

Commit b2b2a19

Browse files
committed
fix(fileEncrypter): add an explicit return type to the getHashCode
1 parent 589ba8b commit b2b2a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fileEncrypter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* 模拟 Windows 下 x86 .net framwork 4.0 中 String.GetHashCode 的实现
33
*/
4-
export function getHashCode(str: string) {
4+
export function getHashCode(str: string): number {
55
let num = 352654597 | 0;
66
let num2 = num;
77

0 commit comments

Comments
 (0)