Skip to content

Commit

Permalink
remove TODOs, #60
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jun 19, 2019
1 parent 301d713 commit e27658b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/view/describers/ForceDescriber.js
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,12 @@ define( require => {
* Returns the appropriate changed direction for the vectors ('get bigger/smaller'), if no change, null is returned.
*
* @param {boolean} forceBiggerOverride - when true, just return the "get bigger" string.
* @returns {string|null} - TODO: this should never return null
* @returns {string}
* @private
*/
getChangeDirection( forceBiggerOverride ) {
const index = forceBiggerOverride ? 2 : this.vectorChangeDirection + 1;
assert && assert( CHANGE_DIRECTIONS[ index ] !== null, 'Alert should not be called if no change in direction' );
return CHANGE_DIRECTIONS[ index ];
}

Expand Down

0 comments on commit e27658b

Please sign in to comment.