Code style fixes.

This commit is contained in:
Oleksii Trekhleb 2018-06-14 07:59:47 +03:00
parent 19f4cc70d3
commit d154015cda
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ export default function fibonacci(n) {
while (iterationsCounter) { while (iterationsCounter) {
currentValue += previousValue; currentValue += previousValue;
previousValue = (currentValue - previousValue); previousValue = currentValue - previousValue;
fibSequence.push(currentValue); fibSequence.push(currentValue);

View File

@ -16,7 +16,7 @@ export default function fibonacciNth(n) {
while (iterationsCounter) { while (iterationsCounter) {
currentValue += previousValue; currentValue += previousValue;
previousValue = (currentValue - previousValue); previousValue = currentValue - previousValue;
iterationsCounter -= 1; iterationsCounter -= 1;
} }