From 0b4e1f79bc2a6b116d8ca5d3ccc646bbb73f21c8 Mon Sep 17 00:00:00 2001 From: Oj Date: Tue, 22 Mar 2022 08:46:50 +0000 Subject: [PATCH] [Registry] Minor source cleanup --- src/utils/registry.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/registry.js b/src/utils/registry.js index 2c25c32..30614f4 100644 --- a/src/utils/registry.js +++ b/src/utils/registry.js @@ -2,7 +2,7 @@ const child_process = require('child_process'); const { join } = require('path'); const sr = process.env.SystemRoot; -const regExe = join(sr || '', sr ? 'System32' : '', 'reg.exe'); // %SystemRoot%\System32\reg.exe OR reg.exe if SR is undefined +const regExe = sr ? join(sr, 'System32', 'reg.exe') : 'reg.exe'; // %SystemRoot%\System32\reg.exe OR reg.exe if SR is undefined const spawn = (args, callback) => {