Simplify null guard

This commit is contained in:
John Lewin 2017-09-13 22:36:08 -07:00
parent c9de5d0a83
commit 5b60cc7196

View file

@ -94,11 +94,8 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
internal void RebuildSliceSettingsTabs()
{
if (topCategoryTabs != null)
{
// Close and remove children
topCategoryTabs.Close();
}
// Close and remove children
topCategoryTabs?.Close();
topCategoryTabs = new TabControl();
topCategoryTabs.TabBar.BorderColor = ActiveTheme.Instance.PrimaryTextColor;