From b01bf06dba18db5a3f2cfa4a12111a6fd052c823 Mon Sep 17 00:00:00 2001 From: mottox2 Date: Sun, 4 Nov 2018 10:58:57 -0800 Subject: [PATCH] Remove var in Libraries/Utilities/buildStyleInterpolator.js (#22112) Summary: Replaces the keywords var with const in Libraries/Utilities/buildStyleInterpolator.js Pull Request resolved: https://github.com/facebook/react-native/pull/22112 Differential Revision: D12919286 Pulled By: TheSavior fbshipit-source-id: bc39a1efc2c372365d95cd305cc6d915f030b209 --- Libraries/Utilities/buildStyleInterpolator.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Libraries/Utilities/buildStyleInterpolator.js b/Libraries/Utilities/buildStyleInterpolator.js index c2eb7937a..a7ab6d893 100644 --- a/Libraries/Utilities/buildStyleInterpolator.js +++ b/Libraries/Utilities/buildStyleInterpolator.js @@ -189,17 +189,17 @@ const buildStyleInterpolator = function(anims) { ); didMatrix = true; } else { - var next = computeNextValLinearScalar(anim, value); + const next = computeNextValLinearScalar(anim, value); didChange = setNextValAndDetectChange(result, name, next, didChange); } } else if (anim.type === 'constant') { - var next = anim.value; + const next = anim.value; didChange = setNextValAndDetectChange(result, name, next, didChange); } else if (anim.type === 'step') { - var next = value >= anim.threshold ? anim.to : anim.from; + const next = value >= anim.threshold ? anim.to : anim.from; didChange = setNextValAndDetectChange(result, name, next, didChange); } else if (anim.type === 'identity') { - var next = value; + const next = value; didChange = setNextValAndDetectChange(result, name, next, didChange); } }