Skip to content

Commit d8f5b20

Browse files
authored
Merge pull request #31687 from ApolloZhu/patch-1
[overlay] Remove unnecessary Optional unwrapping
2 parents f7df8e7 + 6ba3bc7 commit d8f5b20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Darwin/Foundation/NSStringAPI.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1257,7 +1257,7 @@ extension StringProtocol where Index == String.Index {
12571257
in: _toRelativeNSRange(range),
12581258
scheme: NSLinguisticTagScheme(rawValue: tagScheme._ephemeralString),
12591259
options: opts,
1260-
orthography: orthography != nil ? orthography! : nil
1260+
orthography: orthography
12611261
) {
12621262
var stop_ = false
12631263
body($0!.rawValue, self._toRange($1), self._toRange($2), &stop_)

0 commit comments

Comments
 (0)