diff options
Diffstat (limited to 'plugin/dnstap/out/socket.go')
-rw-r--r-- | plugin/dnstap/out/socket.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugin/dnstap/out/socket.go b/plugin/dnstap/out/socket.go index 520dcf1d8..58285f25c 100644 --- a/plugin/dnstap/out/socket.go +++ b/plugin/dnstap/out/socket.go @@ -78,9 +78,5 @@ func (s *Socket) Close() error { if err := s.enc.Flush(); err != nil { return fmt.Errorf("flush: %s", err) } - if err := s.enc.Close(); err != nil { - return err - } - - return nil + return s.enc.Close() } |