From 07b3ee55ec09306e8d0c9bf170cc250b2cf6a684 Mon Sep 17 00:00:00 2001 From: Starman <30315137+Starman3787@users.noreply.github.com> Date: Sun, 15 Sep 2024 18:37:03 +0100 Subject: [PATCH] Update endpoints.js --- src/rest/endpoints.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/rest/endpoints.js b/src/rest/endpoints.js index 9f560348..e5401e69 100644 --- a/src/rest/endpoints.js +++ b/src/rest/endpoints.js @@ -1,11 +1,9 @@ /* of course, stick to this format of "methodPath1Path2" */ /* the arguments passed to the path() function should simply become the parameters of the request */ -const HttpResponse = - process.env.NODE_ENV !== "development" && - process.env.NODE_ENV !== "production" - ? (await import("msw")).HttpResponse - : {}; +const HttpResponse = !process.env.NODE_ENV + ? (await import("msw")).HttpResponse + : {}; import { TEST_DATA } from "../testData.js"; /* for example, (guild_id) => { return `/guilds/${guild_id}` } */