lint: Fix implicit memory aliasing in for loops
Fix all instances of gosec G601: Implicit memory aliasing in for loop.
This commit is contained in:
parent
1b65f15449
commit
9e39080d00
3 changed files with 8 additions and 6 deletions
|
|
@ -157,7 +157,7 @@ func main() {
|
|||
if repo.GPGKey != "" {
|
||||
keys = []string{repo.GPGKey}
|
||||
}
|
||||
|
||||
checkGPG := repo.CheckGPG
|
||||
repos[i] = rpmmd.RepoConfig{
|
||||
Id: repoId,
|
||||
Name: repoName,
|
||||
|
|
@ -165,7 +165,7 @@ func main() {
|
|||
Metalink: repo.Metalink,
|
||||
MirrorList: repo.MirrorList,
|
||||
GPGKeys: keys,
|
||||
CheckGPG: &repo.CheckGPG,
|
||||
CheckGPG: &checkGPG,
|
||||
CheckRepoGPG: common.ToPtr(false),
|
||||
IgnoreSSL: common.ToPtr(false),
|
||||
PackageSets: repo.PackageSets,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue