aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/services/fetchWithCheck.ts
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/services/fetchWithCheck.ts')
-rw-r--r--viewer/src/services/fetchWithCheck.ts7
1 files changed, 0 insertions, 7 deletions
diff --git a/viewer/src/services/fetchWithCheck.ts b/viewer/src/services/fetchWithCheck.ts
deleted file mode 100644
index e84e8b6..0000000
--- a/viewer/src/services/fetchWithCheck.ts
+++ /dev/null
@@ -1,7 +0,0 @@
1export default class FetchWithCheck {
2 static async get(url: RequestInfo): Promise<Response> {
3 const response = await fetch(url);
4 if (!response.ok) throw new Error(`${response.status}: ${response.statusText}`);
5 return response;
6 }
7}