mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[gardening] Remove redundant nil-initialization of optional variables
This commit is contained in:
@@ -1022,7 +1022,7 @@ extension String {
|
||||
orthography: NSOrthography? = nil,
|
||||
tokenRanges: UnsafeMutablePointer<[Range<Index>]>? = nil // FIXME:Can this be nil?
|
||||
) -> [String] {
|
||||
var nsTokenRanges: NSArray? = nil
|
||||
var nsTokenRanges: NSArray?
|
||||
let result = tokenRanges._withNilOrAddress(of: &nsTokenRanges) {
|
||||
self._ns.linguisticTags(
|
||||
in: _toNSRange(range), scheme: tagScheme, options: opts,
|
||||
|
||||
Reference in New Issue
Block a user