Skip to content

Commit 3357d51

Browse files
committed
Remove pre yaml 1.2 bool support
1 parent ee48dba commit 3357d51

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Yams/Constructor.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,9 @@ extension Bool: ScalarConstructible {
138138
/// - returns: An instance of `Bool`, if one was successfully extracted from the scalar.
139139
public static func construct(from scalar: Node.Scalar) -> Bool? {
140140
switch scalar.string.lowercased() {
141-
case "true", "yes", "on":
141+
case "true":
142142
return true
143-
case "false", "no", "off":
143+
case "false":
144144
return false
145145
default:
146146
return nil

0 commit comments

Comments
 (0)