From 59e8b9e250bb1652c656c9c94b9d3ae72ae66204 Mon Sep 17 00:00:00 2001 From: delarea Date: Thu, 31 Aug 2023 18:22:36 +0300 Subject: [PATCH] Allow pass msi as env --- xray/scan/scan.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xray/scan/scan.go b/xray/scan/scan.go index 1a8966807..4a41a1741 100644 --- a/xray/scan/scan.go +++ b/xray/scan/scan.go @@ -168,10 +168,9 @@ func createScanGraphQueryParams(scanParams XrayGraphScanParams) string { params = append(params, watchesQueryParam+watch) } } + case scanParams.MultiScanId != "": + params = append(params, multiScanIdParam+scanParams.MultiScanId) case scanParams.XscGitInfoContext != nil: - if scanParams.MultiScanId != "" { - params = append(params, multiScanIdParam+scanParams.MultiScanId) - } if len(scanParams.XscGitInfoContext.Technologies) > 0 { params = append(params, scanTechQueryParam+scanParams.XscGitInfoContext.Technologies[0]) }