Skip to content

Commit d154015

Browse files
committedJun 14, 2018
Code style fixes.
1 parent 19f4cc7 commit d154015

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎src/algorithms/math/fibonacci/fibonacci.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function fibonacci(n) {
1818

1919
while (iterationsCounter) {
2020
currentValue += previousValue;
21-
previousValue = (currentValue - previousValue);
21+
previousValue = currentValue - previousValue;
2222

2323
fibSequence.push(currentValue);
2424

‎src/algorithms/math/fibonacci/fibonacciNth.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export default function fibonacciNth(n) {
1616

1717
while (iterationsCounter) {
1818
currentValue += previousValue;
19-
previousValue = (currentValue - previousValue);
19+
previousValue = currentValue - previousValue;
2020

2121
iterationsCounter -= 1;
2222
}

0 commit comments

Comments
 (0)
Please sign in to comment.