fix lint errors

pull/946/head
Darien Raymond 7 years ago
parent f17b865982
commit fbc025869b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -76,8 +76,6 @@ func (co *CommanderOutbound) Dispatch(ctx context.Context, r ray.OutboundRay) {
co.listener.add(c)
co.access.RUnlock()
<-closeSignal.Wait()
return
}
func (co *CommanderOutbound) Tag() string {

@ -150,10 +150,8 @@ func (p *AddressParser) ReadAddressPort(buffer *buf.Buffer, input io.Reader) (ne
}
func (p *AddressParser) writePort(writer io.Writer, port net.Port) error {
if _, err := writer.Write(port.Bytes(nil)); err != nil {
return err
}
return nil
_, err := writer.Write(port.Bytes(nil))
return err
}
func (p *AddressParser) writeAddress(writer io.Writer, address net.Address) error {

Loading…
Cancel
Save