Skip to content

Commit 4fbed47

Browse files
author
Dave Abrahams
committed
Add a missing @discardableResult
1 parent 78a420d commit 4fbed47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/private/StdlibUnittest/StdlibUnittest.swift.gyb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,7 @@ public func expectEmpty<T>(_ value: T?, ${TRACE}) {
510510
}
511511
}
512512

513+
@discardableResult
513514
public func expectNotEmpty<T>(_ value: T?, ${TRACE}) -> T? {
514515
if value == nil {
515516
expectationFailure("expected optional to be non-empty", trace: ${trace})

0 commit comments

Comments
 (0)