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
e171482f9a
commit
83ea70b9d4
1 changed files with 3 additions and 1 deletions
|
|
@ -1734,7 +1734,9 @@ function fileMatchesLanguage(root: string, file: string, language: string): bool
|
|||
|
||||
function getStoryScanRoots(root: string, language: string): string[] {
|
||||
const storyRoot = path.join(root, storyFolder(root));
|
||||
if (!fs.existsSync(storyRoot) || !fs.statSync(storyRoot).isDirectory()) {
|
||||
try {
|
||||
if (!fs.statSync(storyRoot).isDirectory()) { return []; }
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
if (language === 'ALL') {
|
||||
|
|
|
|||
Loading…
Reference in a new issue