filterOutStatusFormat removes "status" format from output formats list Status format is only valid for VSA output, not for fallback image validation
(outputFormats []string)
| 1166 | // filterOutStatusFormat removes "status" format from output formats list |
| 1167 | // Status format is only valid for VSA output, not for fallback image validation |
| 1168 | func filterOutStatusFormat(outputFormats []string) []string { |
| 1169 | var filtered []string |
| 1170 | for _, format := range outputFormats { |
| 1171 | parts := strings.SplitN(format, "=", 2) |
| 1172 | formatName := parts[0] |
| 1173 | if formatName != outputFormatStatus { |
| 1174 | filtered = append(filtered, format) |
| 1175 | } |
| 1176 | } |
| 1177 | return filtered |
| 1178 | } |
| 1179 | |
| 1180 | // shouldPrintFallbackHeader determines if the fallback header should be printed |
| 1181 | // The header should only be printed when using text format or when no format is specified |
no outgoing calls
no test coverage detected