Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
Nagaprasadvr committed Feb 16, 2024
1 parent 6dca8f0 commit 7b70524
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/cli/src/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,9 @@ export function assertInstrument(
instrument: LegInstrument
): asserts instrument is Instrument {
if (
!(
instrument instanceof SpotLegInstrument ||
instrument instanceof PsyoptionsAmericanInstrument ||
instrument instanceof PsyoptionsEuropeanInstrument
)
!(instrument instanceof SpotLegInstrument) ||
!(instrument instanceof PsyoptionsAmericanInstrument) ||
!(instrument instanceof PsyoptionsEuropeanInstrument)
) {
throw new Error('Invalid instrument');
}
Expand Down

0 comments on commit 7b70524

Please sign in to comment.