Skip to content

Commit fa999f3

Browse files
committed
prettier
1 parent dedc2a1 commit fa999f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/api-client/src/core/errors.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export class ModrinthServerError extends ModrinthApiError {
9595
context?: string,
9696
): ModrinthServerError {
9797
const v1Error = isModrinthErrorResponse(responseData) ? responseData : undefined
98-
const isHtmlPage = typeof responseData === 'string' && /<!doctype html|<html/i.test(responseData)
98+
const isHtmlPage =
99+
typeof responseData === 'string' && /<!doctype html|<html/i.test(responseData)
99100

100101
const message =
101102
typeof responseData === 'string' && !isHtmlPage ? responseData : `HTTP ${statusCode}`

0 commit comments

Comments
 (0)