From baebb4e5940d43d7a10c86d101fe492ae0c514e2 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Thu, 4 Jan 2024 09:25:29 +0000 Subject: [PATCH] Added missing branch for CONFLICTING dependencies --- src/platforms/modrinth/modrinth-dependency-type.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platforms/modrinth/modrinth-dependency-type.ts b/src/platforms/modrinth/modrinth-dependency-type.ts index c0e53ca..95be043 100644 --- a/src/platforms/modrinth/modrinth-dependency-type.ts +++ b/src/platforms/modrinth/modrinth-dependency-type.ts @@ -78,12 +78,12 @@ function fromDependencyType(type: DependencyType): ModrinthDependencyType | unde switch (type) { case DependencyType.REQUIRED: return ModrinthDependencyType.REQUIRED; + case DependencyType.OPTIONAL: case DependencyType.RECOMMENDED: return ModrinthDependencyType.OPTIONAL; case DependencyType.EMBEDDED: return ModrinthDependencyType.EMBEDDED; - case DependencyType.OPTIONAL: - return ModrinthDependencyType.OPTIONAL; + case DependencyType.CONFLICTING: case DependencyType.INCOMPATIBLE: return ModrinthDependencyType.INCOMPATIBLE; default: