From d154015cda44a820ec16d5c6306587cc848bda53 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Thu, 14 Jun 2018 07:59:47 +0300 Subject: [PATCH] Code style fixes. --- src/algorithms/math/fibonacci/fibonacci.js | 2 +- src/algorithms/math/fibonacci/fibonacciNth.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/algorithms/math/fibonacci/fibonacci.js b/src/algorithms/math/fibonacci/fibonacci.js index 3230dfdd..4caa1d9b 100644 --- a/src/algorithms/math/fibonacci/fibonacci.js +++ b/src/algorithms/math/fibonacci/fibonacci.js @@ -18,7 +18,7 @@ export default function fibonacci(n) { while (iterationsCounter) { currentValue += previousValue; - previousValue = (currentValue - previousValue); + previousValue = currentValue - previousValue; fibSequence.push(currentValue); diff --git a/src/algorithms/math/fibonacci/fibonacciNth.js b/src/algorithms/math/fibonacci/fibonacciNth.js index 76bbbe87..72922447 100644 --- a/src/algorithms/math/fibonacci/fibonacciNth.js +++ b/src/algorithms/math/fibonacci/fibonacciNth.js @@ -16,7 +16,7 @@ export default function fibonacciNth(n) { while (iterationsCounter) { currentValue += previousValue; - previousValue = (currentValue - previousValue); + previousValue = currentValue - previousValue; iterationsCounter -= 1; }