mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
stdlib: remove a stale FIXME, '!= nil' is now required to test Optionals for
the presence of a value Swift SVN r21230
This commit is contained in:
@@ -1331,8 +1331,7 @@ extension String {
|
||||
options: NSStringCompareOptions = nil,
|
||||
range searchRange: Range<Index>? = nil
|
||||
) -> String {
|
||||
// FIXME: " != nil" needed pending <rdar://problem/16997968>
|
||||
return (searchRange != nil) || (options != nil)
|
||||
return (searchRange != nil) || (options != nil)
|
||||
? _ns.stringByReplacingOccurrencesOfString(
|
||||
target,
|
||||
withString: replacement, options: options,
|
||||
|
||||
Reference in New Issue
Block a user