[Registry] Minor source cleanup

This commit is contained in:
Ducko 2022-03-22 08:46:50 +00:00
parent f1b49d1d81
commit 0b4e1f79bc
1 changed files with 1 additions and 1 deletions

View File

@ -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) => {