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:
parent
4b2fea5d13
commit
be8a93363a
@ -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) ]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user