From d8d5a2166c62513a70acb8a06d3eba780bdd16d8 Mon Sep 17 00:00:00 2001 From: s2quake Date: Fri, 3 Jan 2025 15:35:57 +0900 Subject: [PATCH] fix: Remove agent identification code from state query --- NineChronicles.Headless/GraphTypes/StateQuery.cs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/NineChronicles.Headless/GraphTypes/StateQuery.cs b/NineChronicles.Headless/GraphTypes/StateQuery.cs index 360862758..d1f526e9d 100644 --- a/NineChronicles.Headless/GraphTypes/StateQuery.cs +++ b/NineChronicles.Headless/GraphTypes/StateQuery.cs @@ -734,11 +734,6 @@ public StateQuery() resolve: context => { var agentAddress = new AgentAddress(context.GetArgument
("agentAddress")); - if (!(context.Source.WorldState.GetAgentState(agentAddress) is { } agentState)) - { - return null; - } - var repository = new GuildRepository(new World(context.Source.WorldState), new HallowActionContext { }); if (repository.GetJoinedGuild(agentAddress) is { } guildAddress) {