lint: Comma dangle

This commit is contained in:
Cohee
2023-12-02 22:06:57 +02:00
parent 08fedf3a96
commit 64a3564892
53 changed files with 388 additions and 384 deletions

View File

@ -5,7 +5,7 @@ import {
CLIENT_VERSION,
getRequestHeaders,
max_context,
amount_gen
amount_gen,
} from '../script.js';
import { SECRET_KEYS, writeSecret } from './secrets.js';
import { delay } from './utils.js';
@ -38,7 +38,7 @@ const getRequestArgs = () => ({
method: 'GET',
headers: {
'Client-Agent': CLIENT_VERSION,
}
},
});
async function getWorkers() {
@ -130,7 +130,7 @@ async function generateHorde(prompt, params, signal, reportProgress) {
...getRequestHeaders(),
'Client-Agent': CLIENT_VERSION,
},
body: JSON.stringify(payload)
body: JSON.stringify(payload),
});
if (!response.ok) {
@ -156,7 +156,7 @@ async function generateHorde(prompt, params, signal, reportProgress) {
method: 'DELETE',
headers: {
'Client-Agent': CLIENT_VERSION,
}
},
});
throw new Error('Request aborted');
}