revid: cleaned up send logic in httpSender send func

This commit is contained in:
saxon 2019-01-07 10:45:22 +10:30
parent 8878063dc8
commit 703f0a0523
1 changed files with 6 additions and 5 deletions

View File

@ -146,12 +146,13 @@ func (s *httpSender) send() error {
} }
var err error var err error
var reply string var reply string
if send { if !send {
return nil
}
reply, _, err = s.client.Send(netsender.RequestRecv, pins) reply, _, err = s.client.Send(netsender.RequestRecv, pins)
if err != nil { if err != nil {
return err return err
} }
}
return s.extractMeta(reply) return s.extractMeta(reply)
} }