mirror of
https://github.com/TheAlgorithms/JavaScript.git
synced 2025-07-05 00:01:37 +08:00
Fix Block must not be padded by blank lines.
This commit is contained in:
@ -18,7 +18,6 @@ const calcRange = (num) => {
|
||||
}
|
||||
|
||||
const calcFactorial = (num) => {
|
||||
|
||||
if (num > 0) {
|
||||
const range = calcRange(num)
|
||||
const factorial = range.reduce((a, c) => a * c, 1)
|
||||
|
Reference in New Issue
Block a user