From f0cfc7ee6ffd167bdbbd8eb4f338dec3dd3cd2eb Mon Sep 17 00:00:00 2001 From: femsci Date: Tue, 22 Aug 2023 18:29:25 +0200 Subject: [PATCH] Remove mandatory $repo & $arch check. --- src/Nyanbyte.Pacmeow.Server/Data/Mirror.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Nyanbyte.Pacmeow.Server/Data/Mirror.cs b/src/Nyanbyte.Pacmeow.Server/Data/Mirror.cs index 9108452..5197598 100644 --- a/src/Nyanbyte.Pacmeow.Server/Data/Mirror.cs +++ b/src/Nyanbyte.Pacmeow.Server/Data/Mirror.cs @@ -13,11 +13,6 @@ public record Mirror public Uri GetUri(string repo, string arch) { - if (!Address.Contains("$repo") || !Address.Contains("$arch")) - { - throw new DataException($"Invalid server: {Address}"); - } - return new Uri(Address.Replace("$repo", repo).Replace("$arch", arch)); } }