mirror of
https://github.com/coredns/coredns.git
synced 2025-10-27 08:14:18 -04:00
fix: remove unnecessary conversion (#6258)
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ func ipToWire(family int, ipAddr string) ([]byte, error) {
|
||||
// uint16ToWire writes unit16 to wire/binary format
|
||||
func uint16ToWire(data uint16) []byte {
|
||||
buf := make([]byte, 2)
|
||||
binary.BigEndian.PutUint16(buf, uint16(data))
|
||||
binary.BigEndian.PutUint16(buf, data)
|
||||
return buf
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user