Drop the inert inherit flag from the global check and its derived-type case

[CultGlobal] is not inherited, so the flag changed nothing and no test can tell.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Meta Vens 2026-09-29 13:16:11 +02:00
commit 439efd1550
2 changed files with 2 additions and 8 deletions

View file

@ -561,7 +561,7 @@ namespace GameCult.Caching
CultInspectorGrouping Refused(string reason) =>
new CultInspectorGrouping(listed, Array.Empty<CultInspectorMember>(), $"[CultInspectorGroupBy] on {listed.Name}: {reason} The list is not grouped.");
if (listed.GetCustomAttribute<CultGlobalAttribute>(true) != null)
if (listed.GetCustomAttribute<CultGlobalAttribute>() != null)
return Refused("a global document is never grouped.");
var members = new List<CultInspectorMember>();
foreach (var name in declared.Members)