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
This commit is contained in:
mottox2
2018-11-04 10:58:57 -08:00
committed by Facebook Github Bot
parent 368518eff1
commit b01bf06dba

View File

@@ -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);
}
}