Skip to content

Commit

Permalink
simplified condition
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlurie committed Sep 4, 2024
1 parent b393547 commit 3f65b69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/language.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1081,7 +1081,7 @@ export function getAutoLanguage(): LanguageInfo {
.map((code) => getLanguageInfoFromCode(code))
.filter((li) => li);

return canditatelangs.length ? canditatelangs[0] : Language.ENGLISH;
return canditatelangs[0] ?? Language.ENGLISH;
}


Expand Down

0 comments on commit 3f65b69

Please sign in to comment.