Refactor last change to CDN URL normalization

This commit is contained in:
chylex 2024-01-07 06:17:17 +01:00
parent 2c1e5a7603
commit 7173dc6cfc
No known key found for this signature in database
GPG Key ID: 4DE42C8F19A80548

View File

@ -38,14 +38,6 @@ static class DiscordCdn {
query.Remove("is");
query.Remove("hm");
var builder = new UriBuilder(uri) {
Query = query.ToString()
};
if (uri.IsDefaultPort) {
builder.Port = -1;
}
return builder.ToString();
return new UriBuilder(uri) { Query = query.ToString() }.Uri.ToString();
}
}