diff options
author | 2022-07-10 20:06:33 +0200 | |
---|---|---|
committer | 2022-07-10 11:06:33 -0700 | |
commit | c2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch) | |
tree | 3af5d63a0dccaa769507e34a32b6378ccef880c4 /plugin/rewrite/wire.go | |
parent | abc5ac8017b0f434b5845321fb1f405ded7774d4 (diff) | |
download | coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip |
add golangci-lint linter (#5499)
Diffstat (limited to 'plugin/rewrite/wire.go')
-rw-r--r-- | plugin/rewrite/wire.go | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/plugin/rewrite/wire.go b/plugin/rewrite/wire.go index 116b7dcc1..11b4dac05 100644 --- a/plugin/rewrite/wire.go +++ b/plugin/rewrite/wire.go @@ -9,7 +9,6 @@ import ( // ipToWire writes IP address to wire/binary format, 4 or 16 bytes depends on IPV4 or IPV6. func ipToWire(family int, ipAddr string) ([]byte, error) { - switch family { case 1: return net.ParseIP(ipAddr).To4(), nil @@ -28,7 +27,6 @@ func uint16ToWire(data uint16) []byte { // portToWire writes port to wire/binary format, 2 bytes func portToWire(portStr string) ([]byte, error) { - port, err := strconv.ParseUint(portStr, 10, 16) if err != nil { return nil, err |