From ccd4f292319d260c4a144f25fe2ede7444cf08f6 Mon Sep 17 00:00:00 2001 From: Krunoslav Zaher Date: Sun, 13 Mar 2016 15:17:27 +0100 Subject: [PATCH] Fixes debug configuration. --- .../RxDataSources/DataSources/AnimationConfiguration.swift | 2 +- RxExample/RxDataSources/DataSources/Differentiator.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/RxExample/RxDataSources/DataSources/AnimationConfiguration.swift b/RxExample/RxDataSources/DataSources/AnimationConfiguration.swift index 58564316..b02ea961 100644 --- a/RxExample/RxDataSources/DataSources/AnimationConfiguration.swift +++ b/RxExample/RxDataSources/DataSources/AnimationConfiguration.swift @@ -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 diff --git a/RxExample/RxDataSources/DataSources/Differentiator.swift b/RxExample/RxDataSources/DataSources/Differentiator.swift index e056d6bb..02b34d0f 100644 --- a/RxExample/RxDataSources/DataSources/Differentiator.swift +++ b/RxExample/RxDataSources/DataSources/Differentiator.swift @@ -104,7 +104,7 @@ func indexSections(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(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) }