Skip to content

Commit

Permalink
Merge pull request #83 from CallumHopkins181/master
Browse files Browse the repository at this point in the history
Remove redundant else keyword
  • Loading branch information
Takoooooo authored Apr 4, 2022
2 parents f8fa7ff + cdb324c commit 4c541ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions templates/csharp/app-mvvm/ViewLocator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4c541ea

Please sign in to comment.