This commit is contained in:
Skillz4Killz
2022-09-05 19:03:34 +00:00
committed by GitHub
parent eec21d003d
commit c27094d9fe
-1
View File
@@ -34,7 +34,6 @@ export async function runMethod<T = any>(
method,
});
if (!result.ok) {
const err = await result.json().catch(() => {});
throw new Error(`Error: ${err.message ?? result.statusText}`);