From dc540dcaad30be31e9d875cb550e3a28d1f26b45 Mon Sep 17 00:00:00 2001 From: Josh Spicer Date: Wed, 29 Nov 2023 21:54:36 +0000 Subject: [PATCH] Grouping --- src/spec-node/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/spec-node/utils.ts b/src/spec-node/utils.ts index 9ffbbf296..bb202d900 100644 --- a/src/spec-node/utils.ts +++ b/src/spec-node/utils.ts @@ -211,8 +211,8 @@ export function isBuildKitImagePolicyError(err: any): boolean { const errCmdOutput = err?.cmdOutput; const errStderr = err?.stderr; - return (errCmdOutput && typeof errCmdOutput === 'string' && errCmdOutput.includes(imagePolicyErrorString) || errCmdOutput.includes(sourceDeniedString)) - || (errStderr && typeof errStderr === 'string' && errStderr.includes(imagePolicyErrorString) || errStderr.includes(sourceDeniedString)); + return (errCmdOutput && typeof errCmdOutput === 'string' && (errCmdOutput.includes(imagePolicyErrorString) || errCmdOutput.includes(sourceDeniedString))) + || (errStderr && typeof errStderr === 'string' && (errStderr.includes(imagePolicyErrorString) || errStderr.includes(sourceDeniedString))); } export async function inspectDockerImage(params: DockerResolverParameters | DockerCLIParameters, imageName: string, pullImageOnError: boolean) {