From 9e2fce508e1edc9c159954369e7c32f5e1792349 Mon Sep 17 00:00:00 2001 From: Ronan-Yann Lorin Date: Sun, 17 Nov 2024 10:27:49 +0100 Subject: [PATCH] Unnecessary undefined tests removed --- src/core/io/encoder.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/io/encoder.ts b/src/core/io/encoder.ts index 7878eee8..94d5d059 100644 --- a/src/core/io/encoder.ts +++ b/src/core/io/encoder.ts @@ -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 && @@ -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); } @@ -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); }