mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
accounts/abi/bind: address comments
This commit is contained in:
parent
c7bc9a4ece
commit
2a7e4442fc
1 changed files with 0 additions and 4 deletions
|
|
@ -486,10 +486,6 @@ func namedTypeJava(javaKind string, solKind abi.Type) string {
|
||||||
// alias returns an alias of the given string based on the aliasing rules
|
// alias returns an alias of the given string based on the aliasing rules
|
||||||
// or returns itself if no rule is matched.
|
// or returns itself if no rule is matched.
|
||||||
func alias(aliases map[string]string, n string) string {
|
func alias(aliases map[string]string, n string) string {
|
||||||
// Short circuit if aliasing rule is empty
|
|
||||||
if aliases == nil {
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
if alias, exist := aliases[n]; exist {
|
if alias, exist := aliases[n]; exist {
|
||||||
return alias
|
return alias
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue