Skip to content

Commit

Permalink
Remove var in Libraries/Utilities/buildStyleInterpolator.js (facebook…
Browse files Browse the repository at this point in the history
…#22112)

Summary:
Replaces the keywords var with const in Libraries/Utilities/buildStyleInterpolator.js
Pull Request resolved: facebook#22112

Differential Revision: D12919286

Pulled By: TheSavior

fbshipit-source-id: bc39a1efc2c372365d95cd305cc6d915f030b209
  • Loading branch information
mottox2 authored and facebook-github-bot committed Nov 4, 2018
1 parent 368518e commit b01bf06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Libraries/Utilities/buildStyleInterpolator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit b01bf06

Please sign in to comment.