Simplify conditional

This commit is contained in:
Paul Pacheco 2018-10-11 19:31:39 -05:00
parent 5bd90fa63c
commit bb237d6fbb

View File

@ -30,10 +30,7 @@ public override void Initialize(UnityObject[] targets)
public override GUIContent GetPreviewTitle()
{
if (m_Title == null)
{
m_Title = new GUIContent("NetworkManager Message Handlers");
}
m_Title = m_Title ?? new GUIContent("NetworkManager Message Handlers");
return m_Title;
}