Skip to content

Commit 25ce1fd

Browse files
committed
change back from const to let
Responding to PR comments, but it has to be let here.
1 parent 7c1ae9a commit 25ce1fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/blocks/mrc_mechanism.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ const MECHANISM_FUNCTION = {
103103
*/
104104
updateBlock_: function(this: MechanismBlock): void {
105105
// Add input sockets for the arguments.
106-
for (const i = 0; i < this.mrcArgs.length; i++) {
106+
for (let i = 0; i < this.mrcArgs.length; i++) {
107107
const input = this.appendValueInput('ARG' + i)
108108
.setAlign(Blockly.inputs.Align.RIGHT)
109109
.appendField(this.mrcArgs[i].name);
@@ -129,7 +129,7 @@ export const pythonFromBlock = function (
129129
let code = 'self.mechanisms["' + mechanismBlock.getFieldValue('NAME') + '"] = '
130130
+ mechanismBlock.getFieldValue('TYPE') + '('
131131

132-
for (const i = 0; i < mechanismBlock.mrcArgs.length; i++) {
132+
for (let i = 0; i < mechanismBlock.mrcArgs.length; i++) {
133133
const fieldName = 'ARG' + i;
134134
if(i != 0){
135135
code += ', '

0 commit comments

Comments
 (0)