mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-11-01 21:52:25 -05:00
hush now linter
This commit is contained in:
parent
6c1d0e00eb
commit
21d54e6939
2 changed files with 6 additions and 5 deletions
|
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
onmessage = async function(e) {
|
||||
console.log('worker started');
|
||||
console.log('worker started'); // eslint-disable-line no-console
|
||||
|
||||
const challenge = e.data.challenge;
|
||||
const textEncoder = new TextEncoder();
|
||||
|
|
@ -30,7 +30,8 @@ onmessage = async function(e) {
|
|||
const zeroPrefix = '0'.repeat(difficulty);
|
||||
|
||||
let nonce = 0;
|
||||
while (true) {
|
||||
while (true) { // eslint-disable-line no-constant-condition
|
||||
|
||||
// Create possible solution string from challenge + nonce.
|
||||
const solution = textEncoder.encode(challenge + nonce.toString());
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue