Combine if statements

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad
2024-10-29 15:45:30 +00:00
committed by GitHub
parent d157159106
commit c1c198b84b

View File

@ -168,13 +168,12 @@ void ModrinthCheckUpdate::checkNextLoader()
return;
}
if (m_loaders_list.size() == 0) {
if (m_loader_idx == 0) {
getUpdateModsForLoader({});
m_loader_idx++;
return;
}
if (m_loaders_list.isEmpty() && m_loader_idx == 0) {
getUpdateModsForLoader({});
m_loader_idx++;
return;
}
if (m_loader_idx < m_loaders_list.size()) {
getUpdateModsForLoader(m_loaders_list.at(m_loader_idx));
m_loader_idx++;