mirror of https://bitbucket.org/ausocean/av.git
revid: cleaned up send logic in httpSender send func
This commit is contained in:
parent
8878063dc8
commit
703f0a0523
|
@ -146,11 +146,12 @@ func (s *httpSender) send() error {
|
|||
}
|
||||
var err error
|
||||
var reply string
|
||||
if send {
|
||||
reply, _, err = s.client.Send(netsender.RequestRecv, pins)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !send {
|
||||
return nil
|
||||
}
|
||||
reply, _, err = s.client.Send(netsender.RequestRecv, pins)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return s.extractMeta(reply)
|
||||
|
|
Loading…
Reference in New Issue