Skip to content

Commit

Permalink
chore: unnecessary use of boolean literals
Browse files Browse the repository at this point in the history
  • Loading branch information
princerajpoot20 committed Oct 3, 2023
1 parent 04684e8 commit 978ce44
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 978ce44

Please sign in to comment.