mirror of
https://github.com/kubescape/kubescape.git
synced 2026-04-15 06:58:11 +00:00
style: GetFormats → Formats
This commit is contained in:
@@ -187,7 +187,8 @@ func (scanInfo *ScanInfo) setUseFrom() {
|
||||
}
|
||||
}
|
||||
|
||||
func (scanInfo *ScanInfo) GetFormats() []string {
|
||||
// Formats returns a slice of output formats that have been requested for a given scan
|
||||
func (scanInfo *ScanInfo) Formats() []string {
|
||||
return strings.Split(scanInfo.Format, ",")
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -94,7 +94,7 @@ func getInterfaces(scanInfo *cautils.ScanInfo) componentInterfaces {
|
||||
reportHandler := getReporter(tenantConfig, scanInfo.ScanID, scanInfo.Submit, scanInfo.FrameworkScan, scanInfo.GetScanningContext())
|
||||
|
||||
// setup printers
|
||||
formats := scanInfo.GetFormats()
|
||||
formats := scanInfo.Formats()
|
||||
|
||||
printerHandlers := make([]printer.IPrinter, 0)
|
||||
for _, format := range formats {
|
||||
|
||||
Reference in New Issue
Block a user