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,11 +146,12 @@ func (s *httpSender) send() error {
} }
var err error var err error
var reply string var reply string
if send { if !send {
reply, _, err = s.client.Send(netsender.RequestRecv, pins) return nil
if err != nil { }
return err reply, _, err = s.client.Send(netsender.RequestRecv, pins)
} if err != nil {
return err
} }
return s.extractMeta(reply) return s.extractMeta(reply)