Skip to content

Commit 58d63db

Browse files
committed
Another refactoring in Iteration ironhack-labs#2
1 parent e65977e commit 58d63db

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/functions-and-arrays.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ function findLongestWord(wordsArray) {
1717

1818
if (wordsArray.length === 0) {
1919
return null;
20-
} else if (wordsArray.length === 1) {
21-
return longestWord;
2220
}
2321

2422
for (let i = 1; i < wordsArray.length; i++) {

0 commit comments

Comments
 (0)