From 9b23b33f8c35afc76204659807925ff4e924b94a Mon Sep 17 00:00:00 2001 From: Meta Vens Date: Tue, 29 Sep 2026 17:11:47 +0200 Subject: [PATCH] Let Stryker mutate the variant name rule The is-not pattern binding made every mutant in RefuseVariantNameSharing a compile error, so Stryker removed the whole method from its run. Co-Authored-By: Claude Sonnet 5 --- src/GameCult.Caching/CultCache.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GameCult.Caching/CultCache.cs b/src/GameCult.Caching/CultCache.cs index 2a9de06e..d2115535 100644 --- a/src/GameCult.Caching/CultCache.cs +++ b/src/GameCult.Caching/CultCache.cs @@ -2761,7 +2761,8 @@ namespace GameCult.Caching foreach (var variant in landing.Values.Where(stored => stored.Variant != null)) { - if (plan.Projections[variant.Key.Value].Name is not { } variantName) + var variantName = plan.Projections[variant.Key.Value].Name; + if (variantName == null) continue; for (var ancestor = Ancestor(variant.Variant!.BaseKey); ancestor != null; ancestor = ancestor.Variant == null ? null : Ancestor(ancestor.Variant.BaseKey))