diff --git a/src/GameLogic/ConfigurationChangeMediator.cs b/src/GameLogic/ConfigurationChangeMediator.cs index 3d0a9a715..c6be4cf92 100644 --- a/src/GameLogic/ConfigurationChangeMediator.cs +++ b/src/GameLogic/ConfigurationChangeMediator.cs @@ -106,8 +106,8 @@ public IDisposable RegisterForNew(T obj, Func { var registration = (CreateRegistration)this._createRegistrations.AddOrUpdate( typeof(TConfig), - key => new CreateRegistration(), - (key, value) => value); + _ => new CreateRegistration(), + (_, value) => value); registration.OnCreate += InvokeOnCreate; return registration;