Skip to content

Commit

Permalink
perf[es]: code format of es
Browse files Browse the repository at this point in the history
  • Loading branch information
jaysunxiao committed Apr 23, 2024
1 parent 0cd3f44 commit 2efac39
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ private static String writeObject(ProtocolRegistration registration) {
var jsBuilder = new StringBuilder();
if (registration.isCompatible()) {
jsBuilder.append("const beforeWriteIndex = buffer.getWriteOffset();").append(LS);
jsBuilder.append(TAB).append(StringUtils.format("buffer.writeInt({});", registration.getPredictionLength())).append(LS);
jsBuilder.append(TAB + TAB).append(StringUtils.format("buffer.writeInt({});", registration.getPredictionLength())).append(LS);
} else {
jsBuilder.append(TAB).append("buffer.writeInt(-1);").append(LS);
jsBuilder.append(TAB + TAB).append("buffer.writeInt(-1);").append(LS);
}
for (var i = 0; i < fields.length; i++) {
var field = fields[i];
Expand Down

0 comments on commit 2efac39

Please sign in to comment.