diff --git a/Sources/Nodes/Core/AbstractBuilder.swift b/Sources/Nodes/Core/AbstractBuilder.swift index fbe7f0692..c8babee22 100644 --- a/Sources/Nodes/Core/AbstractBuilder.swift +++ b/Sources/Nodes/Core/AbstractBuilder.swift @@ -87,7 +87,7 @@ open class AbstractBuilder BuildType { let component: ComponentType = componentFactory(dynamicComponentDependency) let newComponent: AnyObject = component as AnyObject - assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called") + assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called.") lastComponent = newComponent return build(component: component, dynamicBuildDependency: dynamicBuildDependency) } diff --git a/Sources/Nodes/Core/Config/Plugin.swift b/Sources/Nodes/Core/Config/Plugin.swift index 32e3e4bad..b0cd22367 100644 --- a/Sources/Nodes/Core/Config/Plugin.swift +++ b/Sources/Nodes/Core/Config/Plugin.swift @@ -99,7 +99,7 @@ open class Plugin { private func makeComponent() -> ComponentType { let component: ComponentType = componentFactory() let newComponent: AnyObject = component as AnyObject - assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called") + assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called.") lastComponent = newComponent return component } diff --git a/Sources/Nodes/Core/Config/PluginList.swift b/Sources/Nodes/Core/Config/PluginList.swift index 3038a29e7..80c78b1ed 100644 --- a/Sources/Nodes/Core/Config/PluginList.swift +++ b/Sources/Nodes/Core/Config/PluginList.swift @@ -167,7 +167,7 @@ open class PluginList { fileprivate func makeComponent() -> ComponentType { let component: ComponentType = componentFactory() let newComponent: AnyObject = component as AnyObject - assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called") + assert(newComponent !== lastComponent, "Factory must produce a new component each time it is called.") lastComponent = newComponent return component } @@ -204,7 +204,7 @@ open class PluginList { let keys: [KeyType] = creationOrder(component: component, state: state) var store: Set = [] let uniqueKeys: [KeyType] = keys.filter { store.insert($0).inserted } - assert(uniqueKeys.count == keys.count, "Keys must be unique \(keys)") + assert(uniqueKeys.count == keys.count, "Keys must be unique: \(keys)") return uniqueKeys.compactMap { key in plugins.first { $0.key == key } } } }