From ac78afc12f72662fdc18b9fdc9a7d516a6ddc31b Mon Sep 17 00:00:00 2001 From: Stone_Red <56473591+Stone-Red-Code@users.noreply.github.com> Date: Wed, 4 Mar 2026 20:34:45 +0100 Subject: [PATCH] Fix warnings --- YesNt.Interpreter/Runtime/YesNtInterpreter.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YesNt.Interpreter/Runtime/YesNtInterpreter.cs b/YesNt.Interpreter/Runtime/YesNtInterpreter.cs index 932735d..02a3f65 100644 --- a/YesNt.Interpreter/Runtime/YesNtInterpreter.cs +++ b/YesNt.Interpreter/Runtime/YesNtInterpreter.cs @@ -17,8 +17,8 @@ public class YesNtInterpreter public event Action OnDebugOutput; private readonly RuntimeInformation runtimeInfo = new RuntimeInformation(); - private Dictionary> statements = []; - private List> staticStatements = []; + private Dictionary> statements; + private readonly List> staticStatements; public ReadOnlyCollection StatementInformation { @@ -65,7 +65,7 @@ public class YesNtInterpreter GeneratedStatementRegistry.Register(runtimeInfo, out statements, out staticStatements); runtimeInfo.OnDebugOutput += (s) => OnDebugOutput?.Invoke(s); - runtimeInfo.OnLineExecuted += (DebugEventArgs e) => OnLineExecuted?.Invoke(e); + runtimeInfo.OnLineExecuted += e => OnLineExecuted?.Invoke(e); } public void Stop()