diff --git a/js/scenes/model/TemperaturePointController.js b/js/scenes/model/TemperaturePointController.js index cdc5c14..298e2c0 100644 --- a/js/scenes/model/TemperaturePointController.js +++ b/js/scenes/model/TemperaturePointController.js @@ -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 ); diff --git a/js/scenes/model/TemperatureSceneModel.js b/js/scenes/model/TemperatureSceneModel.js index 02bf8c8..55abea0 100644 --- a/js/scenes/model/TemperatureSceneModel.js +++ b/js/scenes/model/TemperatureSceneModel.js @@ -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