mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-05-11 18:36:45 +02:00
Fix nullref warning
This commit is contained in:
parent
deca3fc1bf
commit
5bbb706b3c
1 changed files with 2 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using DiscordChatExporter.Core.Utils.Extensions;
|
||||
|
||||
namespace DiscordChatExporter.Core.Utils;
|
||||
|
||||
|
@ -25,7 +26,7 @@ public class UrlBuilder
|
|||
return this;
|
||||
|
||||
var keyEncoded = Uri.EscapeDataString(key);
|
||||
var valueEncoded = Uri.EscapeDataString(value);
|
||||
var valueEncoded = value?.Pipe(Uri.EscapeDataString);
|
||||
_queryParameters[keyEncoded] = valueEncoded;
|
||||
|
||||
return this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue