accounts/abi/bind: address comments

This commit is contained in:
rjl493456442 2019-11-05 20:35:44 +08:00
parent c7bc9a4ece
commit 2a7e4442fc

View file

@ -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
// or returns itself if no rule is matched.
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 {
return alias
}