fix: process map promise return

This commit is contained in:
JackEnx 2024-12-16 21:47:09 -03:00
parent 66a8170fd2
commit f2714bd0ab

View file

@ -104,7 +104,10 @@ const getSystemProcessMap = async () => {
if (process.platform === "linux") {
await new Promise((res) => {
exec(commands.findWineExecutables(), (err, out) => {
if (err) res(null);
if (err) {
res(null);
return;
}
const pathSet = new Set(
out