Skip to content

Commit

Permalink
style change
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosdiez committed Jan 12, 2023
1 parent f42a30e commit 1561698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/api/pkg/resource/common/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func GetContainerImages(podTemplate *v1.PodSpec) []string {

// GetContainerImagesMap returns a map with the container name as a key, the image as the value.
func GetContainerImagesMap(podTemplate *v1.PodSpec) map[string]string {
containerImageMap := make(map[string]string)
containerImageMap := map[string]string{}
for _, container := range podTemplate.Containers {
containerImageMap[container.Name] = container.Image
}
Expand All @@ -96,7 +96,7 @@ func GetInitContainerImages(podTemplate *v1.PodSpec) []string {

// GetInitContainerImages returns init container image strings from the given pod spec.
func GetInitContainerImagesMap(podTemplate *v1.PodSpec) map[string]string {
initContainerImageMap := make(map[string]string)
initContainerImageMap := map[string]string{}
for _, initContainer := range podTemplate.InitContainers {
initContainerImageMap[initContainer.Name] = initContainer.Image
}
Expand Down

0 comments on commit 1561698

Please sign in to comment.