From cdb324ccaa7b1d04aa676e368a365583c33f4333 Mon Sep 17 00:00:00 2001 From: CallumHopkins181 <100864965+CallumHopkins181@users.noreply.github.com> Date: Sun, 3 Apr 2022 10:10:24 +0100 Subject: [PATCH] Remove redundant else keyword --- templates/csharp/app-mvvm/ViewLocator.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/templates/csharp/app-mvvm/ViewLocator.cs b/templates/csharp/app-mvvm/ViewLocator.cs index 44f086f7..e57360e0 100644 --- a/templates/csharp/app-mvvm/ViewLocator.cs +++ b/templates/csharp/app-mvvm/ViewLocator.cs @@ -16,10 +16,8 @@ public IControl Build(object data) { return (Control)Activator.CreateInstance(type)!; } - else - { - return new TextBlock { Text = "Not Found: " + name }; - } + + return new TextBlock { Text = "Not Found: " + name }; } public bool Match(object data)