From 5fbf5fe40d97e4ad7b40b0c3c848e4c43478069d Mon Sep 17 00:00:00 2001 From: kozbial Date: Wed, 14 Jul 2021 10:39:37 -0700 Subject: [PATCH] Migrate core/utils/math.js to ES6 const/let --- core/utils/math.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils/math.js b/core/utils/math.js index 516972579..e85b808e7 100644 --- a/core/utils/math.js +++ b/core/utils/math.js @@ -48,7 +48,7 @@ Blockly.utils.math.toDegrees = function(angleRadians) { */ Blockly.utils.math.clamp = function(lowerBound, number, upperBound) { if (upperBound < lowerBound) { - var temp = upperBound; + const temp = upperBound; upperBound = lowerBound; lowerBound = temp; }