[feature] remove code smells

This commit is contained in:
MathieuG-P
2023-09-15 09:44:55 +02:00
parent d61c1a519f
commit c407997dc2
3 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ export class LivService {
return execOnOs({
win32: async () => {
const regRes = await regedit.promisified.list([this.livRegeditKey]).then(res => res[this.livRegeditKey]);
return regRes !== undefined && regRes.exists;
return regRes?.exists;
}
});
}