mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-13 03:32:13 +00:00
fix: return on parse file
This commit is contained in:
parent
c6fda9b4d8
commit
36b98a7d73
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ const iniParse = (filePath: string) => {
|
|||
return object;
|
||||
} catch (err) {
|
||||
achievementsLogger.error(`Error parsing ${filePath}`, err);
|
||||
return null;
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
|
@ -107,7 +107,7 @@ const jsonParse = (filePath: string) => {
|
|||
return JSON.parse(readFileSync(filePath, "utf-8"));
|
||||
} catch (err) {
|
||||
achievementsLogger.error(`Error parsing ${filePath}`, err);
|
||||
return null;
|
||||
return {};
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue