Fix lint issues: govet linter (#478)

Reordering fields reduces struct size in memory

Co-authored-by: Azeem Shaikh <azeemshaikh38@gmail.com>
This commit is contained in:
Chris McGehee 2021-05-19 23:38:58 -07:00 committed by GitHub
parent 91b3641196
commit e75a9e19f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -34,7 +34,7 @@ linters:
- goprintffuncname
- gosec
- gosimple
# - govet
- govet
- ineffassign
# - lll
- misspell

View File

@ -145,15 +145,15 @@ func validateGitHubActionWorkflow(path string, content []byte, logf func(s strin
// We only retrieve what we need for logging.
// Github workflows format: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions
type GitHubActionWorkflowConfig struct {
Name string `yaml:name`
Jobs map[string]struct {
Name string `yaml:name`
Name string `yaml:"name"`
Steps []struct {
Name string `yaml:name`
Id string `yaml:id`
Uses string `yaml:uses`
Name string `yaml:"name"`
Id string `yaml:"id"`
Uses string `yaml:"uses"`
}
}
Name string `yaml:"name"`
}
if len(content) == 0 {