mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-07-26 23:29:49 +02:00
Refactor
This commit is contained in:
@@ -20,9 +20,9 @@ public class UrlBuilder
|
||||
return this;
|
||||
}
|
||||
|
||||
public UrlBuilder SetQueryParameter(string key, string? value, bool ignoreUnsetValue = true)
|
||||
public UrlBuilder SetQueryParameter(string key, string? value, bool ignoreIfEmptyValue = true)
|
||||
{
|
||||
if (ignoreUnsetValue && string.IsNullOrWhiteSpace(value))
|
||||
if (ignoreIfEmptyValue && string.IsNullOrWhiteSpace(value))
|
||||
return this;
|
||||
|
||||
var keyEncoded = Uri.EscapeDataString(key);
|
||||
|
||||
Reference in New Issue
Block a user