Skip to content

Commit 936cca5

Browse files
trekhlebshoredata
authored andcommitted
Code style fixes.
1 parent 4bb068a commit 936cca5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/algorithms/math/fibonacci/fibonacci.js

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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)