Remove mandatory $repo & $arch check.
This commit is contained in:
parent
6c2ce2133e
commit
f0cfc7ee6f
1 changed files with 0 additions and 5 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue