Remove mandatory $repo & $arch check.

This commit is contained in:
femsci 2023-08-22 18:29:25 +02:00
parent 6c2ce2133e
commit f0cfc7ee6f
Signed by: femsci
GPG key ID: 08F7911F0E650C67

View file

@ -13,11 +13,6 @@ public record Mirror
public Uri GetUri(string repo, string arch) 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)); return new Uri(Address.Replace("$repo", repo).Replace("$arch", arch));
} }
} }