Update RiotSwiftUI/Modules/Spaces/AddRoomSelector/Service/AddRoomItemsProcessor.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
Gil Eluard
2022-02-17 10:35:23 +01:00
committed by GitHub
parent 269b2f5aa5
commit 6496f732df
@@ -44,8 +44,8 @@ class AddRoomItemsProcessor: MatrixItemChooserProcessorProtocol {
// MARK: Private
// Add room with roomId from list of room IDs at index to the parentSpace.
// Recurse to the next index once done.
/// Add room with roomId from list of room IDs at index to the parentSpace.
/// Recurse to the next index once done.
func addChild(from roomIds: [String], at index: Int, completion: @escaping (Result<Void, Error>) -> Void) {
guard index < roomIds.count else {
// last item has been processed or list is empty --> the recursion has finished