Skip to content

Commit ab7d80f

Browse files
All the cool kids these days use ternaries.
1 parent d5f23b7 commit ab7d80f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

RetailCoder.VBE/Navigation/CodeExplorer/CodeExplorerViewModel.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -527,10 +527,7 @@ public Visibility TreeViewVisibility
527527
{
528528
get
529529
{
530-
if (Projects == null || Projects.Count == 0)
531-
{ return Visibility.Collapsed; }
532-
else
533-
{ return Visibility.Visible; }
530+
return Projects == null || Projects.Count == 0 ? Visibility.Collapsed : Visibility.Visible;
534531
}
535532
}
536533

0 commit comments

Comments
 (0)