mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 20:26:19 +02:00
nonexistent
This commit is contained in:
parent
db4c544b72
commit
42ac29359c
@ -37,7 +37,7 @@ export function loadJsonFile<T extends Json>(...paths: string[]): T {
|
||||
const joinedPaths = path.join(...paths);
|
||||
|
||||
if (!fs.existsSync(joinedPaths)) {
|
||||
console.log(`Skipping nonexisting file: ${joinedPaths}`);
|
||||
console.log(`Skipping nonexistent file: ${joinedPaths}`);
|
||||
return {} as T;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user