Skip to content

Commit

Permalink
add => { return as bad text and fix usages, phetsims/chipper#790
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Sep 19, 2019
1 parent 8a6215c commit a768a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/scenes/model/TemperaturePointController.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ define( require => {
const TEMPERATURE_RANGE_ON_MAP = new Range( -60, 50 ); // in Celsius, must match range used to make map images

// convenience functions
const celsiusToFahrenheitInteger = temperatureInCelsius => { return Util.roundSymmetric( temperatureInCelsius * 9 / 5 + 32 ); };
const celsiusToFahrenheitInteger = temperatureInCelsius => Util.roundSymmetric( temperatureInCelsius * 9 / 5 + 32 );

// color map for obtaining a color given a temperature value, must match algorithm used on maps
const CELSIUS_TEMPERATURE_TO_COLOR_MAPPER = new TemperatureToColorMapper( TEMPERATURE_RANGE_ON_MAP );
Expand Down
2 changes: 1 addition & 1 deletion js/scenes/model/TemperatureSceneModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ define( require => {
// test for overlap with all other temperature point controllers, move if detected
while ( _.some(
pointControllersOnMap,
pc => { return pc.celsiusTemperatureProperty.value === pointControllerUnderTest.celsiusTemperatureProperty.value; } )
pc => pc.celsiusTemperatureProperty.value === pointControllerUnderTest.celsiusTemperatureProperty.value )
) {

// overlap detected, move the point controller towards the a reasonably large area of the map
Expand Down

0 comments on commit a768a60

Please sign in to comment.