mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-07 13:55:17 +00:00
gosec
This commit is contained in:
@@ -56,8 +56,12 @@ func NewDockerInfrastructureData(m Manifest) (InfrastructureData, error) {
|
|||||||
Instances: make(map[string]InstanceData),
|
Instances: make(map[string]InstanceData),
|
||||||
Network: netAddress,
|
Network: netAddress,
|
||||||
}
|
}
|
||||||
for name := range m.Nodes {
|
// gosec complains about the following line, stating that the second
|
||||||
ifd.Instances[name] = InstanceData{ //nolint: gosec
|
// param in the range expression should be _- i.e. k, _ := range... -
|
||||||
|
// however, there is no second param in the range here so this seems
|
||||||
|
// like a false positive.
|
||||||
|
for name := range m.Nodes { //nolint: gosec
|
||||||
|
ifd.Instances[name] = InstanceData{
|
||||||
IPAddress: ipGen.Next(),
|
IPAddress: ipGen.Next(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user