GitPlugin: Simplify return statements

Change-Id: If09c93acade749326b95bb1c6068b2d43a4d8551
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Jarek Kobus
2023-08-02 11:37:20 +02:00
parent 8d8e60436d
commit 224e4eeb59
12 changed files with 40 additions and 43 deletions

View File

@@ -333,7 +333,7 @@ QModelIndex BranchView::selectedIndex()
{
QModelIndexList selected = m_branchView->selectionModel()->selectedIndexes();
if (selected.isEmpty())
return QModelIndex();
return {};
return m_filterModel->mapToSource(selected.at(0));
}