Minor cleanup

GitOrigin-RevId: 827dde65f70a0ea2741faea4f28064c220940404
This commit is contained in:
Rustam Vishnyakov
2019-08-28 09:46:15 +00:00
committed by intellij-monorepo-bot
parent 8a886bfaee
commit 3c711dec38
@@ -312,7 +312,7 @@ public class SearchUtil {
final TabbedPaneWrapper tabbedPaneWrapper = ((TabbedPaneWrapper.TabbedPaneHolder)rootComponent).getTabbedPaneWrapper();
final String path = SearchableOptionsRegistrar.getInstance().getInnerPath(configurable, option);
if (path != null) {
final int index = getSelection(path, tabbedPaneWrapper.getTabCount(), i -> tabbedPaneWrapper.getTitleAt(i));;
final int index = getSelection(path, tabbedPaneWrapper.getTabCount(), i -> tabbedPaneWrapper.getTitleAt(i));
if (index > -1 && index < tabbedPaneWrapper.getTabCount()) {
highlightComponent((JComponent)tabbedPaneWrapper.getTabComponentAt(index), option);
}