mirror of
https://github.com/evdboom/Bindery.git
synced 2026-07-22 06:49:36 +00:00
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
5310e631ae
commit
2401d382ca
1 changed files with 2 additions and 1 deletions
|
|
@ -1758,7 +1758,8 @@ function getLanguageFolderNames(root: string, language: string): string[] {
|
|||
const upper = language.toUpperCase();
|
||||
const names = new Set<string>([upper]);
|
||||
const settings = readSettings(root);
|
||||
for (const entry of settings?.languages ?? []) {
|
||||
const languages = Array.isArray(settings?.languages) ? settings.languages : [];
|
||||
for (const entry of languages) {
|
||||
if (entry.code.toUpperCase() !== upper) { continue; }
|
||||
if (typeof entry.folderName === 'string' && entry.folderName.trim()) {
|
||||
names.add(entry.folderName.trim());
|
||||
|
|
|
|||
Loading…
Reference in a new issue