From 9c1b55bebc1f7777ee830886c1999a72f082c17f Mon Sep 17 00:00:00 2001 From: Peter Makra <6892971+mcraa@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:23:21 +0100 Subject: [PATCH] patch: fix mesage of null Change-Type: patch --- lib/shared/permissions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared/permissions.ts b/lib/shared/permissions.ts index 516eea13..3102851a 100755 --- a/lib/shared/permissions.ts +++ b/lib/shared/permissions.ts @@ -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 });