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; } /**