We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a855c commit c81c6e6Copy full SHA for c81c6e6
1 file changed
lib/LanguageDetect.js
@@ -213,8 +213,6 @@ LanguageDetect.prototype = {
213
214
if (!scoresLength) return [];
215
216
- scores = limit > 0 ? scores.slice(0, limit) : scores;
217
-
218
switch (me.languageType) {
219
case 'iso2':
220
for (i = scoresLength; i--;) {
@@ -231,4 +229,4 @@ LanguageDetect.prototype = {
231
229
// limit the number of returned scores
232
230
return limit > 0 ? scores.slice(0, limit) : scores;
233
}
234
-}
+}
0 commit comments