diff options
author | 2017-09-22 16:13:04 -0700 | |
---|---|---|
committer | 2017-09-22 16:13:04 -0700 | |
commit | 387ceb480bf6303cdc3d2677c07e44204ea47419 (patch) | |
tree | 47400ceaece2077ce724da910846d61c68b90825 /plugin/dnstap/out/tcp_test.go | |
parent | 6f19dda0b452c1c51329ec7829b8af7cdf30e34e (diff) | |
download | coredns-387ceb480bf6303cdc3d2677c07e44204ea47419.tar.gz coredns-387ceb480bf6303cdc3d2677c07e44204ea47419.tar.zst coredns-387ceb480bf6303cdc3d2677c07e44204ea47419.zip |
go lint/vet/misspell cleanup (#1105)
This fix address several issues related to golint/vet/misspell.
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
Diffstat (limited to 'plugin/dnstap/out/tcp_test.go')
-rw-r--r-- | plugin/dnstap/out/tcp_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugin/dnstap/out/tcp_test.go b/plugin/dnstap/out/tcp_test.go index 113603cd4..45ac98bf7 100644 --- a/plugin/dnstap/out/tcp_test.go +++ b/plugin/dnstap/out/tcp_test.go @@ -9,11 +9,9 @@ func sendOneTCP(tcp *TCP) error { if _, err := tcp.Write([]byte("frame")); err != nil { return err } - if err := tcp.Flush(); err != nil { - return err - } - return nil + return tcp.Flush() } + func TestTCP(t *testing.T) { tcp := NewTCP("localhost:14000") |