cosmetic
This commit is contained in:
1 parent
775a603a2c
commit
bbafba4fe8
1 file changed
+2
-3
+2
-3
@@ -61,11 +61,10 @@ func (dec *EthernetDecoder) formICMPMTUPacket(mtu int) ([]byte, error) {
|
|||||||
Id: 0,
|
Id: 0,
|
||||||
Seq: uint16(mtu)},
|
Seq: uint16(mtu)},
|
||||||
&payload)
|
&payload)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
return buf.Bytes(), nil
|
|
||||||
} else {
|
|
||||||
return []byte{}, err
|
return []byte{}, err
|
||||||
}
|
}
|
||||||
|
return buf.Bytes(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|||||||
Reference in new issue
Block a user