Skip to content

Commit

Permalink
Unnecessary undefined tests removed
Browse files Browse the repository at this point in the history
  • Loading branch information
rylorin committed Nov 17, 2024
1 parent 73bcccf commit 9e2fce5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/io/encoder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ function tagValuesToTokens(tagValues: TagValue[]): unknown[] {
tokens.push(orderId);

if (this.serverVersion >= MIN_SERVER_VER.MANUAL_ORDER_TIME)
tokens.push(orderCancel.manualOrderCancelTime ?? "");
tokens.push(orderCancel.manualOrderCancelTime);

if (
this.serverVersion >= MIN_SERVER_VER.RFQ_FIELDS &&
Expand All @@ -580,7 +580,7 @@ function tagValuesToTokens(tagValues: TagValue[]): unknown[] {
}

if (this.serverVersion >= MIN_SERVER_VER.CME_TAGGING_FIELDS) {
tokens.push(orderCancel.extOperator ?? "");
tokens.push(orderCancel.extOperator);
tokens.push(orderCancel.manualOrderIndicator ?? Integer_MAX_VALUE);
}

Expand Down Expand Up @@ -2251,7 +2251,7 @@ function tagValuesToTokens(tagValues: TagValue[]): unknown[] {
}

if (this.serverVersion >= MIN_SERVER_VER.CME_TAGGING_FIELDS) {
tokens.push(orderCancel.extOperator ?? "");
tokens.push(orderCancel.extOperator);
tokens.push(orderCancel.manualOrderIndicator ?? Integer_MAX_VALUE);
}

Expand Down

0 comments on commit 9e2fce5

Please sign in to comment.