mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-25 17:08:35 +03:00
fix eslint-errors
This commit is contained in:
@@ -5,7 +5,7 @@ export function getHash<T extends string>(value: T, times = 5000): T & HashedVal
|
||||
if (times <= 0) return "" as T & HashedValue;
|
||||
|
||||
for (let i = 0; i < times; i++) {
|
||||
let hashCreator = crypto.createHash('sha256');
|
||||
const hashCreator = crypto.createHash('sha256');
|
||||
value = hashCreator.update(value).digest('hex') as T;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user