mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-07-22 01:46:48 -04: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:
@@ -135,8 +135,10 @@ export async function validateBrandingAssets(staticPath: string, extraBodyClass:
|
||||
for (const filename of required) {
|
||||
try {
|
||||
await fs.access(path.join(staticPath, filename));
|
||||
} catch {
|
||||
missing.push(filename);
|
||||
} catch (e: unknown) {
|
||||
const err = e as NodeJS.ErrnoException;
|
||||
if (err.code === 'ENOENT') missing.push(filename);
|
||||
else throw err;
|
||||
}
|
||||
}
|
||||
if (missing.length > 0) {
|
||||
|
||||
Reference in New Issue
Block a user