fix(lint): clear error-level violations across runtime and ui
This commit is contained in:
@@ -298,7 +298,7 @@ function truncateForError(text: string, max = 180): string {
|
||||
async function readResponseBody(response: Response): Promise<string> {
|
||||
const textReader = response.text as unknown;
|
||||
if (typeof textReader === 'function') {
|
||||
return await response.text();
|
||||
return response.text();
|
||||
}
|
||||
|
||||
const maybeJsonResponse = response as unknown as { json?: () => Promise<unknown> };
|
||||
|
||||
Reference in New Issue
Block a user