fix
This commit is contained in:
parent
0b796360ec
commit
05aae66a65
|
|
@ -39,3 +39,4 @@ linters:
|
||||||
- unconvert
|
- unconvert
|
||||||
- unparam
|
- unparam
|
||||||
- unused
|
- unused
|
||||||
|
- loggercheck
|
||||||
|
|
|
||||||
|
|
@ -269,7 +269,7 @@ func (in *SecurityValidator) download() error {
|
||||||
}
|
}
|
||||||
defer func() {
|
defer func() {
|
||||||
if err := out.Close(); err != nil {
|
if err := out.Close(); err != nil {
|
||||||
jenkinslog.V(log.VDebug).Info("Failed to close file", err)
|
jenkinslog.V(log.VDebug).Info("Failed to close file", "error", err)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -344,7 +344,7 @@ func (s *seedJobs) credentialValue(namespace string, seedJob v1alpha2.SeedJob) (
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *seedJobs) getAllSeedJobIDs(jenkins v1alpha2.Jenkins) []string {
|
func (s *seedJobs) getAllSeedJobIDs(jenkins v1alpha2.Jenkins) []string {
|
||||||
var ids []string
|
ids := make([]string, 0, len(jenkins.Spec.SeedJobs))
|
||||||
for _, seedJob := range jenkins.Spec.SeedJobs {
|
for _, seedJob := range jenkins.Spec.SeedJobs {
|
||||||
ids = append(ids, seedJob.ID)
|
ids = append(ids, seedJob.ID)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue