1
1
mirror of https://github.com/github/semantic.git synced 2024-12-26 08:25:19 +03:00

Construct Category.JSON using a dictionary literal.

This commit is contained in:
Rob Rix 2015-10-09 08:43:22 -04:00
parent 4b2fea5d13
commit be8a93363a

View File

@ -32,9 +32,7 @@ public enum Category: AlgebraicHashable, Comparable, CustomDebugStringConvertibl
public var JSON: Doubt.JSON {
switch self {
case let .Tag(s):
return .Dictionary([
"tag": .String(s),
])
return [ "tag": .String(s) ]
}
}
}