mirror of
https://github.com/ReactiveX/RxSwift.git
synced 2024-10-05 14:37:29 +03:00
Fixes debug configuration.
This commit is contained in:
parent
718495a6ea
commit
ccd4f29231
@ -3,7 +3,7 @@
|
||||
// RxDataSources
|
||||
//
|
||||
// Created by Esteban Torres on 5/2/16.
|
||||
// Copyright © 2016 kzaher. All rights reserved.
|
||||
// Copyright © 2016 Krunoslav Zaher. All rights reserved.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
|
@ -104,7 +104,7 @@ func indexSections<S: AnimatableSectionModelType>(sections: [S]) throws -> [S.Id
|
||||
for (i, section) in sections.enumerate() {
|
||||
guard indexedSections[section.identity] == nil else {
|
||||
#if DEBUG
|
||||
precondition(indexedSections[section.identity] == nil, "Section \(section) has already been indexed at \(indexedSections[section]!)")
|
||||
precondition(indexedSections[section.identity] == nil, "Section \(section) has already been indexed at \(indexedSections[section.identity]!)")
|
||||
#endif
|
||||
throw DifferentiatorError.DuplicateItem(item: section)
|
||||
}
|
||||
@ -127,7 +127,7 @@ func indexSectionItems<S: AnimatableSectionModelType>(sections: [S]) throws -> [
|
||||
for (j, item) in sections[i].items.enumerate() {
|
||||
guard indexedItems[item.identity] == nil else {
|
||||
#if DEBUG
|
||||
precondition(indexedItems[item.identity] == nil, "Item \(item) has already been indexed at \(indexedItems[item]!)" )
|
||||
precondition(indexedItems[item.identity] == nil, "Item \(item) has already been indexed at \(indexedItems[item.identity]!)" )
|
||||
#endif
|
||||
throw DifferentiatorError.DuplicateItem(item: item)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user