Skip to content

Commit

Permalink
remove eslint-disable, #80
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Mar 3, 2023
1 parent 20aa409 commit bfca4e4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions js/game/view/ChallengeNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,10 @@ export default class ChallengeNode extends Node {
guess.leftovers.forEach( leftover => quantityProperties.push( leftover.quantityProperty ) );
}

this.checkButtonEnabledProperty = DerivedProperty.deriveAny( quantityProperties, () => {
// true if any quantity that the user can guess is non-zero
for ( let i = 0, j = arguments.length; i < j; i++ ) {
// eslint-disable-next-line prefer-rest-params
if ( arguments[ i ] !== 0 ) { return true; }
}
return false;
} );
// true if any quantity that the user can guess is non-zero
this.checkButtonEnabledProperty = DerivedProperty.deriveAny( quantityProperties, () =>
!!_.find( quantityProperties, quantityProperty => ( quantityProperty.value !== 0 ) )
);

//------------------------------------------------------------------------------------
// Boxes & arrow
Expand Down

0 comments on commit bfca4e4

Please sign in to comment.