Skip to content

Commit 7d87486

Browse files
SilverRainZianlancetaylor
authored andcommitted
text/unicod/bidi: remove duplicate assignment
Fixes golang/go#43623 Change-Id: I4da134cccaf6a9e5331229a0ac2a60e5cb711e92 GitHub-Last-Rev: ae0f2d9 GitHub-Pull-Request: #29 Reviewed-on: https://go-review.googlesource.com/c/text/+/358834 Reviewed-by: Marcel van Lohuizen <mpvl@golang.org> Trust: Marcel van Lohuizen <mpvl@golang.org> Trust: Ian Lance Taylor <iant@golang.org>
1 parent 310d592 commit 7d87486

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

unicode/bidi/core.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,9 @@ func (s *isolatingRunSequence) resolveWeakTypes() {
495495
if t == NSM {
496496
s.types[i] = precedingCharacterType
497497
} else {
498-
if t.in(LRI, RLI, FSI, PDI) {
499-
precedingCharacterType = ON
500-
}
498+
// if t.in(LRI, RLI, FSI, PDI) {
499+
// precedingCharacterType = ON
500+
// }
501501
precedingCharacterType = t
502502
}
503503
}

0 commit comments

Comments
 (0)