1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-06-05 18:49:14 -04:00

Fix lint according to golangci-lint (#439)

This commit is contained in:
Loyalsoldier
2020-11-22 05:05:01 +08:00
committed by GitHub
parent f41286a0c7
commit b68f943c78
39 changed files with 96 additions and 137 deletions

View File

@@ -128,7 +128,7 @@ func (w *PacketWriter) WriteMultiBufferWithMetadata(mb buf.MultiBuffer, dest net
return nil
}
func (w *PacketWriter) writePacket(payload []byte, dest net.Destination) (int, error) {
func (w *PacketWriter) writePacket(payload []byte, dest net.Destination) (int, error) { // nolint: unparam
buffer := buf.StackNew()
defer buffer.Release()