mirror of
https://github.com/github/semantic.git
synced 2024-12-25 16:02:43 +03:00
Revert "Add a constructor to JSON which takes a CustomJSONConvertible."
This reverts commit 9e0d4208bed25824275ccc34092b8659fa316a2b.
This commit is contained in:
parent
cdf4848357
commit
0371c51340
@ -10,11 +10,6 @@ public enum JSON: ArrayLiteralConvertible, BooleanLiteralConvertible, Dictionary
|
|||||||
case Null
|
case Null
|
||||||
|
|
||||||
|
|
||||||
public init<T: CustomJSONConvertible>(_ convertible: T) {
|
|
||||||
self = convertible.JSON
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
public var number: Double? {
|
public var number: Double? {
|
||||||
if case let .Number(d) = self { return d }
|
if case let .Number(d) = self { return d }
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
Reference in New Issue
Block a user