fixed indetnations

This commit is contained in:
Ilya Puchka
2018-08-13 20:00:27 +01:00
parent 4f1a5b3e3d
commit b9702afbd4
6 changed files with 42 additions and 44 deletions

View File

@@ -11,13 +11,13 @@ public protocol NodeType {
/// Render the collection of nodes in the given context
public func renderNodes(_ nodes:[NodeType], _ context:Context) throws -> String {
return try nodes.map({
return try nodes.map {
do {
return try $0.render(context)
} catch {
throw error.withToken($0.token)
}
}).joined(separator: "")
}.joined(separator: "")
}
public class SimpleNode : NodeType {