mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-02 16:23:48 +03:00
fix: return on parse file
This commit is contained in:
parent
c6fda9b4d8
commit
36b98a7d73
@ -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 New Issue
Block a user