1
1
mirror of https://github.com/github/semantic.git synced 2024-11-25 21:43:07 +03:00

Abbreviate the JSON for Info.

This commit is contained in:
Rob Rix 2015-10-13 09:49:56 -04:00
parent 26aabe9c58
commit 80c0443820

View File

@ -38,10 +38,8 @@ public enum Info: AlgebraicHashable, CustomDebugStringConvertible, CustomJSONCon
switch self {
case let .Literal(source, categories):
return [
"literal": [
"source": .String(source),
"categories": .Array(categories.map { $0.JSON })
]
"source": .String(source),
"categories": .Array(categories.map { $0.JSON }),
]
}
}