From ef79c42ebcbed5e3bcc4b5af73e1adeadc686af3 Mon Sep 17 00:00:00 2001 From: Moshe-Rappaport-CA Date: Sun, 23 Oct 2022 16:25:47 +0300 Subject: [PATCH] PER-335 Add comment --- core/core/initutils.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/core/initutils.go b/core/core/initutils.go index 4304e6c8..7dc5056c 100644 --- a/core/core/initutils.go +++ b/core/core/initutils.go @@ -160,15 +160,12 @@ func setSubmitBehavior(scanInfo *cautils.ScanInfo, tenantConfig cautils.ITenantC return } - // if tenantConfig.GetAccountID() == "" { - // scanInfo.Submit = false - // } else { + // If There is no account, or if the account is not legal, do not submit if _, err := uuid.Parse(tenantConfig.GetAccountID()); err != nil { scanInfo.Submit = false } else { scanInfo.Submit = true } - // } }