mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-01 09:33:46 +00:00
accounts/abi/bind: fix warning about assignment to blank
This commit is contained in:
parent
d6316e056c
commit
faabbf7671
2 changed files with 3 additions and 3 deletions
|
|
@ -107,7 +107,7 @@ func (d *depTreeDeployer) linkAndDeploy(metadata *MetaData) (common.Address, err
|
|||
// result returns a result for this deployment, or an error if it failed.
|
||||
func (d *depTreeDeployer) result() *DeploymentResult {
|
||||
// remove the override addresses from the resulting deployedAddrs
|
||||
for pattern, _ := range d.deployedAddrs {
|
||||
for pattern := range d.deployedAddrs {
|
||||
if _, ok := d.deployerTxs[pattern]; !ok {
|
||||
delete(d.deployedAddrs, pattern)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ type linkTestCaseInput struct {
|
|||
// linkDeps will return a set of root dependencies and their sub-dependencies connected via the Deps field
|
||||
func linkDeps(deps map[string]*MetaData) []*MetaData {
|
||||
roots := make(map[string]struct{})
|
||||
for pattern, _ := range deps {
|
||||
for pattern := range deps {
|
||||
roots[pattern] = struct{}{}
|
||||
}
|
||||
|
||||
|
|
@ -106,7 +106,7 @@ func linkDeps(deps map[string]*MetaData) []*MetaData {
|
|||
connectedDeps[pattern] = internalLinkDeps(*dep, deps, &roots) //nolint:all
|
||||
}
|
||||
rootMetadatas := []*MetaData{}
|
||||
for pattern, _ := range roots {
|
||||
for pattern := range roots {
|
||||
dep := connectedDeps[pattern] //nolint:all
|
||||
rootMetadatas = append(rootMetadatas, &dep)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue