aboutsummaryrefslogtreecommitdiff
path: root/plugin/dnstap/out/tcp_test.go
diff options
context:
space:
mode:
authorGravatar Yong Tang <yong.tang.github@outlook.com> 2017-09-22 16:13:04 -0700
committerGravatar GitHub <noreply@github.com> 2017-09-22 16:13:04 -0700
commit387ceb480bf6303cdc3d2677c07e44204ea47419 (patch)
tree47400ceaece2077ce724da910846d61c68b90825 /plugin/dnstap/out/tcp_test.go
parent6f19dda0b452c1c51329ec7829b8af7cdf30e34e (diff)
downloadcoredns-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.go6
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")