swarm/api: remove unneeded blank assignement

release/1.8
Janos Guljas 7 years ago
parent a758b5cf7a
commit 3732c15faa
  1. 2
      swarm/api/api.go

@ -82,7 +82,7 @@ func NewMultiResolver(opts ...MultiResolverOption) (m *MultiResolver) {
// the Hash from the the first one which does not return error // the Hash from the the first one which does not return error
// will be returned. // will be returned.
func (m MultiResolver) Resolve(addr string) (h common.Hash, err error) { func (m MultiResolver) Resolve(addr string) (h common.Hash, err error) {
rs, _ := m.resolvers[""] rs := m.resolvers[""]
if i := strings.LastIndex(addr, "."); i >= 0 { if i := strings.LastIndex(addr, "."); i >= 0 {
rstld, ok := m.resolvers[addr[i+1:]] rstld, ok := m.resolvers[addr[i+1:]]
if ok { if ok {

Loading…
Cancel
Save