Simplify FST return (#13771)

This commit is contained in:
mrhbj 2024-09-12 21:20:10 +08:00 committed by GitHub
parent ff8b81afc5
commit 91c6954e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 2 deletions

View File

@ -624,7 +624,6 @@ public final class FST<T> implements Accountable {
arc.output = follow.nextFinalOutput();
arc.flags = BIT_LAST_ARC;
arc.nodeFlags = arc.flags;
return arc;
} else {
in.setPosition(follow.target());
byte flags = arc.nodeFlags = in.readByte();
@ -677,8 +676,8 @@ public final class FST<T> implements Accountable {
readNextRealArc(arc, in);
}
assert arc.isLast();
return arc;
}
return arc;
}
private long readUnpackedNodeTarget(BytesReader in) throws IOException {