From ee9458a1c42e279465585b53a3556992ea2fc251 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Thu, 4 Jan 2024 09:22:18 +0000 Subject: [PATCH] Forgot to normalize the response as `undefined` --- src/platforms/modrinth/modrinth-api-client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/modrinth/modrinth-api-client.ts b/src/platforms/modrinth/modrinth-api-client.ts index 2fb8eb2..9933d32 100644 --- a/src/platforms/modrinth/modrinth-api-client.ts +++ b/src/platforms/modrinth/modrinth-api-client.ts @@ -184,7 +184,7 @@ export class ModrinthApiClient { async createVersion(version: ModrinthVersionInit): Promise { const form = packModrinthVersionInit(version); const response = await this._fetch("/version", HttpRequest.post().with(form)); - return await response.json(); + return await response.json() ?? undefined; } /**