mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-06 23:56:37 +08:00
prettier
This commit is contained in:
@@ -47,7 +47,10 @@ export async function readApiEnvelope<T>(
|
||||
|
||||
const envelope = body as ApiEnvelope<T>;
|
||||
if (!res.ok) {
|
||||
throw new ApiEnvelopeError(envelope.error_msg || fallbackMessage, res.status);
|
||||
throw new ApiEnvelopeError(
|
||||
envelope.error_msg || fallbackMessage,
|
||||
res.status,
|
||||
);
|
||||
}
|
||||
if (envelope.error_msg) {
|
||||
throw new ApiEnvelopeError(envelope.error_msg, res.status);
|
||||
|
||||
Reference in New Issue
Block a user