File tree 1 file changed +0
-16
lines changed
1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -100,14 +100,6 @@ public func beTruthy<T: ExpressibleByBooleanLiteral & Equatable>() -> Predicate<
100
100
return Predicate . simpleNilable ( " be truthy " ) { actualExpression in
101
101
let actualValue = try actualExpression. evaluate ( )
102
102
if let actualValue = actualValue {
103
- // FIXME: This is a workaround to SR-2290.
104
- // See:
105
- // - https://bugs.swift.org/browse/SR-2290
106
- // - https://github.com/norio-nomura/Nimble/pull/5#issuecomment-237835873
107
- if let number = actualValue as? NSNumber {
108
- return PredicateStatus ( bool: number. boolValue == true )
109
- }
110
-
111
103
return PredicateStatus ( bool: actualValue == ( true as T ) )
112
104
}
113
105
return PredicateStatus ( bool: actualValue != nil )
@@ -120,14 +112,6 @@ public func beFalsy<T: ExpressibleByBooleanLiteral & Equatable>() -> Predicate<T
120
112
return Predicate . simpleNilable ( " be falsy " ) { actualExpression in
121
113
let actualValue = try actualExpression. evaluate ( )
122
114
if let actualValue = actualValue {
123
- // FIXME: This is a workaround to SR-2290.
124
- // See:
125
- // - https://bugs.swift.org/browse/SR-2290
126
- // - https://github.com/norio-nomura/Nimble/pull/5#issuecomment-237835873
127
- if let number = actualValue as? NSNumber {
128
- return PredicateStatus ( bool: number. boolValue == false )
129
- }
130
-
131
115
return PredicateStatus ( bool: actualValue == ( false as T ) )
132
116
}
133
117
return PredicateStatus ( bool: actualValue == nil )
You can’t perform that action at this time.
0 commit comments