From 6c1ce82e5cb73eb00e1d1087fe16ac4057f6fe8b Mon Sep 17 00:00:00 2001 From: Chandler Cox Date: Fri, 20 Jan 2023 00:56:46 -0600 Subject: [PATCH] Small cleanup --- Source/Editor/CustomEditors/Editors/TagEditor.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Source/Editor/CustomEditors/Editors/TagEditor.cs b/Source/Editor/CustomEditors/Editors/TagEditor.cs index 56ffdbaba..d1cdf8cfc 100644 --- a/Source/Editor/CustomEditors/Editors/TagEditor.cs +++ b/Source/Editor/CustomEditors/Editors/TagEditor.cs @@ -183,14 +183,7 @@ namespace FlaxEditor.CustomEditors.Editors // Check all entered subtags and create any that dont exist for (int j = 0; j <= i; j++) { - if (j == 0) - { - tagString += subInputs[j]; - } - else - { - tagString += "." + subInputs[j]; - } + tagString += j == 0 ? subInputs[j] : "." + subInputs[j]; } if (string.IsNullOrEmpty(tagString))