mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2026-03-01 12:43:43 +00:00
Update NuGet packages
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
using System;
|
||||
using System.Text.Json;
|
||||
|
||||
namespace DiscordChatExporter.Core.Utils.Extensions
|
||||
{
|
||||
public static class JsonExtensions
|
||||
{
|
||||
public static string GetNonWhiteSpaceString(this JsonElement json)
|
||||
{
|
||||
if (json.ValueKind != JsonValueKind.String)
|
||||
throw new FormatException();
|
||||
|
||||
var value = json.GetString();
|
||||
if (string.IsNullOrWhiteSpace(value))
|
||||
throw new FormatException();
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user