patch: fix mesage of null

Change-Type: patch
This commit is contained in:
Peter Makra 2021-12-29 15:23:21 +01:00
parent 30ae4bbd86
commit 9c1b55bebc

View File

@ -40,7 +40,7 @@ function sudoExecAsync(
cmd,
options,
(error: Error | undefined, stdout: Std, stderr: Std) => {
if (error !== undefined) {
if (error) {
reject(error);
} else {
resolve({ stdout, stderr });