Skip to content

Commit

Permalink
Remove unnecessary 'if' condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Artiom Khachaturian committed Feb 17, 2025
1 parent 8b5b80b commit 198a4dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/folderstatusmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,8 @@ FolderStatusModel::SubFolderInfo *FolderStatusModel::infoForIndex(const QModelIn
return nullptr;
}
return &parentInfo->_subs[index.row()];
} else if (index.row() < _folders.size()){
}
if (index.row() < _folders.size()) {
return const_cast<SubFolderInfo *>(&_folders[index.row()]);
}
}
Expand Down

0 comments on commit 198a4dc

Please sign in to comment.