Skip to content

Commit

Permalink
Disable lint rule for consistent-return, see #411
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 29, 2021
1 parent 0525278 commit 682badf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/common/model/RectangularThermalMovableModelElement.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ class RectangularThermalMovableModelElement extends UserMovableModelElement {
* @public
*/
removeEnergyChunk( energyChunk ) {
this.slices.forEach( slice => {
this.slices.forEach( slice => { // eslint-disable-line consistent-return
if ( slice.energyChunkList.indexOf( energyChunk ) >= 0 ) {
slice.energyChunkList.remove( energyChunk );
this.resetECDistributionCountdown();
Expand Down

0 comments on commit 682badf

Please sign in to comment.