From ca49866c6647b68d9a300379f67b4296d6766128 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sat, 17 Nov 2018 15:18:51 +0100 Subject: [PATCH] Minor tweaks --- Ycicle/Program.cs | 11 ++--------- Ycicle/Ycicle.csproj | 1 - 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/Ycicle/Program.cs b/Ycicle/Program.cs index 9fd54a7..1ea564a 100644 --- a/Ycicle/Program.cs +++ b/Ycicle/Program.cs @@ -14,16 +14,9 @@ namespace Ycicle { Console.Write("ยป "); var input = Console.ReadLine(); - switch (input) - { - case "exit": - return; - } + if (input == "exit") return; - if (script == null) - script = new Script(input); - else - script = Script.ContinueWith(script, input); + script = script == null ? new Script(input) : Script.ContinueWith(script, input); if (script.Diagnostics.Messages.Count > 0) { diff --git a/Ycicle/Ycicle.csproj b/Ycicle/Ycicle.csproj index c51c094..c79ad40 100644 --- a/Ycicle/Ycicle.csproj +++ b/Ycicle/Ycicle.csproj @@ -6,7 +6,6 @@ -