[overlay] Remove unnecessary Optional unwrapping

This commit is contained in:
Zhiyu Zhu/朱智语
2020-05-10 06:42:36 -04:00
committed by GitHub
parent 37657d0e06
commit 6ba3bc7386

View File

@@ -1257,7 +1257,7 @@ extension StringProtocol where Index == String.Index {
in: _toRelativeNSRange(range),
scheme: NSLinguisticTagScheme(rawValue: tagScheme._ephemeralString),
options: opts,
orthography: orthography != nil ? orthography! : nil
orthography: orthography
) {
var stop_ = false
body($0!.rawValue, self._toRange($1), self._toRange($2), &stop_)