1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-10 09:50:43 +00:00

fix lint errors

This commit is contained in:
Darien Raymond 2018-03-08 21:21:50 +01:00
parent f17b865982
commit fbc025869b
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 2 additions and 6 deletions

View File

@ -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 {

View File

@ -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 {