From f9039c0557d7d27a5810ec17e46c9cb1c61b456c Mon Sep 17 00:00:00 2001 From: Mzack9999 Date: Mon, 12 Jun 2023 12:35:21 +0200 Subject: [PATCH] adding comment --- v2/internal/runner/runner.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/v2/internal/runner/runner.go b/v2/internal/runner/runner.go index ad79f9173..8b396a783 100644 --- a/v2/internal/runner/runner.go +++ b/v2/internal/runner/runner.go @@ -592,6 +592,8 @@ func (r *Runner) RunEnumeration() error { r.issuesClient.Close() } + // todo: error propagation without canonical straight error check is required by cloud? + // use safe dereferencing to avoid potential panics in case of previous unchecked errors if v := ptrutil.Safe(results); !v.Load() { gologger.Info().Msgf("No results found. Better luck next time!") }