From 978ce44fbc1c22d1c9622f99d916bf4925d3993a Mon Sep 17 00:00:00 2001 From: Prince Rajpoot Date: Tue, 3 Oct 2023 16:56:45 +0530 Subject: [PATCH] chore: unnecessary use of boolean literals --- .../playground/options/TypeScriptGeneratorOptions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modelina-website/src/components/playground/options/TypeScriptGeneratorOptions.tsx b/modelina-website/src/components/playground/options/TypeScriptGeneratorOptions.tsx index c606b4c5f7..780acdf4ea 100644 --- a/modelina-website/src/components/playground/options/TypeScriptGeneratorOptions.tsx +++ b/modelina-website/src/components/playground/options/TypeScriptGeneratorOptions.tsx @@ -63,7 +63,7 @@ class TypeScriptGeneratorOptions extends React.Component< onChangeIncludeJsonBinPack(event: any) { if (this.props.setNewConfig) { const shouldIncludeMarshalling = this.context?.tsMarshalling === false && event.target.checked === true; - this.props.setNewConfig('tsIncludeJsonBinPack', event.target.checked, shouldIncludeMarshalling ? false : true); + this.props.setNewConfig('tsIncludeJsonBinPack', event.target.checked, !shouldIncludeMarshalling); if(shouldIncludeMarshalling) { this.props.setNewConfig('tsMarshalling', event.target.checked);