void LitstrRepoProxy::load() { for (int repoId = RepoIdCount - 1; repoId >= 0; --repoId) { if (!getLitstrs(repoId).get()) { break; } } }
void LitstrRepoProxy::load() { for (int repoId = RepoIdCount - 1; repoId >= 0; --repoId) { // Return success on the first loaded repo. In the case of an error we // continue on to the next repo. if (getLitstrs(repoId).get() == RepoStatus::success) { break; } } // No repos were loadable. This is normal for non-repo-authoritative repos. }