From c585abc21a9d2b5b7c5ce1dc102c8c8243740137 Mon Sep 17 00:00:00 2001 From: needsure Date: Fri, 6 Dec 2024 13:41:14 +0800 Subject: [PATCH] chore: fix some function name in comment Signed-off-by: needsure --- core/core/initutils.go | 2 +- core/pkg/resultshandling/results.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core/initutils.go b/core/core/initutils.go index 7b5862d8..5aa8f33e 100644 --- a/core/core/initutils.go +++ b/core/core/initutils.go @@ -277,7 +277,7 @@ func getAttackTracksGetter(ctx context.Context, attackTracks, accountID string, return downloadReleasedPolicy } -// getUIPrinter returns a printer that will be used to print to the program’s UI (terminal) +// GetUIPrinter returns a printer that will be used to print to the program’s UI (terminal) func GetUIPrinter(ctx context.Context, scanInfo *cautils.ScanInfo, clusterName string) printer.IPrinter { var p printer.IPrinter if helpers.ToLevel(logger.L().GetLevel()) >= helpers.WarningLevel { diff --git a/core/pkg/resultshandling/results.go b/core/pkg/resultshandling/results.go index cdec8554..e6aae4af 100644 --- a/core/pkg/resultshandling/results.go +++ b/core/pkg/resultshandling/results.go @@ -54,7 +54,7 @@ func (rh *ResultsHandler) SetData(data *cautils.OPASessionObj) { rh.ScanData = data } -// GetPrinter returns all printers +// GetPrinters returns all printers func (rh *ResultsHandler) GetPrinters() []printer.IPrinter { return rh.PrinterObjs }