refactor(fibonacci): identacao do codigo

This commit is contained in:
Caio Thurler 2022-10-30 09:32:36 -03:00
parent 2954160e87
commit 915507c469

View File

@ -2,9 +2,9 @@ export function fibonacci(value) {
// implementar logica aqui
if (value < 1) {
return 0
} else if (value <= 2) {
return 1
} else {
return (fibonacci(value - 1) + fibonacci(value - 2))
}
} else if (value <= 2) {
return 1
} else {
return (fibonacci(value - 1) + fibonacci(value - 2))
}
}