Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
AlisonB319 committed Apr 17, 2024
1 parent 31fb1df commit aff3190
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/agent/datamodel/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func trimEOF(data []byte) []byte {
return data
}

func processDownloadURL(downloadURL string) (string, error) {
func processContainerImageTag(downloadURL string) (string, error) {
// example URL "downloadURL": "mcr.microsoft.com/oss/kubernetes/autoscaler/addon-resizer:*",
// getting the data between the last / and the last :
parts := strings.Split(downloadURL, "/")
Expand Down
2 changes: 1 addition & 1 deletion pkg/agent/datamodel/sig_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ func getCachedVersionsFromComponentsJSON(componentsFilePath string) {
}

for _, image := range components.ContainerImages {
componentName, err := processDownloadURL(image.DownloadURL)
componentName, err := processContainerImageTag(image.DownloadURL)

Check failure on line 1021 in pkg/agent/datamodel/sig_config.go

View workflow job for this annotation

GitHub Actions / lint

shadow: declaration of "err" shadows declaration at line 1011 (govet)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit aff3190

Please sign in to comment.