aboutsummaryrefslogtreecommitdiff
path: root/src/modules/word
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/word')
-rw-r--r--src/modules/word/filterWordListByLength.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/word/filterWordListByLength.ts b/src/modules/word/filterWordListByLength.ts
index ca312371..4651d497 100644
--- a/src/modules/word/filterWordListByLength.ts
+++ b/src/modules/word/filterWordListByLength.ts
@@ -87,12 +87,12 @@ export function filterWordListByLength(options: {
if (typeof length === 'number') {
return STRATEGIES[strategy](wordList, { min: length, max: length });
- } else {
- return STRATEGIES[strategy](wordList, length);
}
+
+ return STRATEGIES[strategy](wordList, length);
} else if (strategy === 'shortest' || strategy === 'longest') {
return STRATEGIES[strategy](wordList);
- } else {
- return [...wordList];
}
+
+ return [...wordList];
}