diff options
author | 2018-01-30 09:31:39 -0800 | |
---|---|---|
committer | 2018-01-30 09:31:39 -0800 | |
commit | 2b268134e9558629cc3dc943046fa0f3ec23cb00 (patch) | |
tree | 8163a9a59b3e5e774cca8bad3230cedbdb4780bd | |
parent | 09d4a9c22cb9321115eed756965b56e364fbf59f (diff) | |
download | coredns-2b268134e9558629cc3dc943046fa0f3ec23cb00.tar.gz coredns-2b268134e9558629cc3dc943046fa0f3ec23cb00.tar.zst coredns-2b268134e9558629cc3dc943046fa0f3ec23cb00.zip |
Golint fix (#1475)
Golint fix to make goreportcard happy
Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
-rw-r--r-- | plugin/dnstap/dnstapio/io.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/plugin/dnstap/dnstapio/io.go b/plugin/dnstap/dnstapio/io.go index d2f54679b..9390568f9 100644 --- a/plugin/dnstap/dnstapio/io.go +++ b/plugin/dnstap/dnstapio/io.go @@ -62,10 +62,7 @@ func (dio *dnstapIO) newConnect() error { } } - if err = dio.enc.resetWriter(dio.conn); err != nil { - return err - } - return nil + return dio.enc.resetWriter(dio.conn) } // Connect connects to the dnstop endpoint. |