mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 16:33:47 +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.
|
// result returns a result for this deployment, or an error if it failed.
|
||||||
func (d *depTreeDeployer) result() *DeploymentResult {
|
func (d *depTreeDeployer) result() *DeploymentResult {
|
||||||
// remove the override addresses from the resulting deployedAddrs
|
// remove the override addresses from the resulting deployedAddrs
|
||||||
for pattern, _ := range d.deployedAddrs {
|
for pattern := range d.deployedAddrs {
|
||||||
if _, ok := d.deployerTxs[pattern]; !ok {
|
if _, ok := d.deployerTxs[pattern]; !ok {
|
||||||
delete(d.deployedAddrs, pattern)
|
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
|
// linkDeps will return a set of root dependencies and their sub-dependencies connected via the Deps field
|
||||||
func linkDeps(deps map[string]*MetaData) []*MetaData {
|
func linkDeps(deps map[string]*MetaData) []*MetaData {
|
||||||
roots := make(map[string]struct{})
|
roots := make(map[string]struct{})
|
||||||
for pattern, _ := range deps {
|
for pattern := range deps {
|
||||||
roots[pattern] = struct{}{}
|
roots[pattern] = struct{}{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -106,7 +106,7 @@ func linkDeps(deps map[string]*MetaData) []*MetaData {
|
||||||
connectedDeps[pattern] = internalLinkDeps(*dep, deps, &roots) //nolint:all
|
connectedDeps[pattern] = internalLinkDeps(*dep, deps, &roots) //nolint:all
|
||||||
}
|
}
|
||||||
rootMetadatas := []*MetaData{}
|
rootMetadatas := []*MetaData{}
|
||||||
for pattern, _ := range roots {
|
for pattern := range roots {
|
||||||
dep := connectedDeps[pattern] //nolint:all
|
dep := connectedDeps[pattern] //nolint:all
|
||||||
rootMetadatas = append(rootMetadatas, &dep)
|
rootMetadatas = append(rootMetadatas, &dep)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue