Skip to content

Commit f3e93ab

Browse files
committed
Fix bug where a boolean literal was being initialized as a number instead of boolean.
1 parent fb5c39e commit f3e93ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GraphQL/Map/Map.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -701,7 +701,7 @@ extension Map : ExpressibleByNilLiteral {
701701

702702
extension Map : ExpressibleByBooleanLiteral {
703703
public init(booleanLiteral value: BooleanLiteralType) {
704-
self = .number(Number(value))
704+
self = .bool(value)
705705
}
706706
}
707707

0 commit comments

Comments
 (0)