Skip to content

Commit

Permalink
Update GetGroupHonorInfoOperation.cs
Browse files Browse the repository at this point in the history
是。。是这个意思吗?
  • Loading branch information
ishkong authored Nov 8, 2024
1 parent d139301 commit 5ec456e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ private static void ProcessJsonObject(JsonObject jsonObject)
{
foreach (var oldKey in KeyToOnebot11.Keys)
{
if (jsonObject.ContainsKey(oldKey))
if (jsonObject.Remove(oldKey, out var nodeValue))
{
var nodeValue = jsonObject[oldKey];
jsonObject.Remove(oldKey);
jsonObject[KeyToOnebot11[oldKey]] = nodeValue;
}
}
Expand Down

0 comments on commit 5ec456e

Please sign in to comment.