From ef401f39fa30463270706271367bc74819bd43b5 Mon Sep 17 00:00:00 2001 From: Travis Leeden Date: Thu, 11 Jan 2024 17:25:05 +1000 Subject: [PATCH] Testing --- source/Octopus.Versioning/VersionFactory.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/source/Octopus.Versioning/VersionFactory.cs b/source/Octopus.Versioning/VersionFactory.cs index ac56694..634e4b4 100644 --- a/source/Octopus.Versioning/VersionFactory.cs +++ b/source/Octopus.Versioning/VersionFactory.cs @@ -10,7 +10,7 @@ namespace Octopus.Versioning { public static class VersionFactory { - public static IVersion CreateVersion(string input, VersionFormat format) + public static ISortableVersion CreateVersion(string input, VersionFormat format) { switch (format) { @@ -20,14 +20,12 @@ public static IVersion CreateVersion(string input, VersionFormat format) return CreateDockerTag(input); case VersionFormat.Octopus: return CreateOctopusVersion(input); - case VersionFormat.Unsortable: - return CreateUnsortableVersion(input); default: return CreateSemanticVersion(input); } } - public static IVersion? TryCreateVersion(string input, VersionFormat format) + public static ISortableVersion? TryCreateVersion(string input, VersionFormat format) { switch (format) { @@ -37,8 +35,6 @@ public static IVersion CreateVersion(string input, VersionFormat format) return TryCreateDockerTag(input); case VersionFormat.Octopus: return TryCreateOctopusVersion(input); - case VersionFormat.Unsortable: - return TryCreateUnsortableVersion(input); default: return TryCreateSemanticVersion(input); }