From 5dd4e1ed50095412af5e823085bc9e2c48284b1d Mon Sep 17 00:00:00 2001 From: kozbial Date: Thu, 19 Aug 2021 09:41:21 -0700 Subject: [PATCH] Cleanup in core/renderers/zelos/measurables/inputs.js --- core/renderers/zelos/measurables/inputs.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/renderers/zelos/measurables/inputs.js b/core/renderers/zelos/measurables/inputs.js index 1dd14f3c9..cff7b4dae 100644 --- a/core/renderers/zelos/measurables/inputs.js +++ b/core/renderers/zelos/measurables/inputs.js @@ -24,10 +24,9 @@ const object = goog.require('Blockly.utils.object'); /** * An object containing information about the space a statement input takes up * during rendering - * @param {!ConstantProvider} constants The rendering - * constants provider. - * @param {!Input} input The statement input to measure and store - * information for. + * @param {!ConstantProvider} constants The rendering constants provider. + * @param {!Input} input The statement input to measure and store information + * for. * @package * @constructor * @extends {BaseStatementInput} @@ -38,8 +37,9 @@ const StatementInput = function(constants, input) { if (this.connectedBlock) { // Find the bottom-most connected block in the stack. let block = this.connectedBlock; - while (block.getNextBlock()) { - block = block.getNextBlock(); + let nextBlock; + while ((nextBlock = block.getNextBlock())) { + block = nextBlock; } if (!block.nextConnection) { this.height = this.connectedBlockHeight;