Skip to content

Commit 6c9ba81

Browse files
author
anahan
committed
Make linter happy
1 parent 830157c commit 6c9ba81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/applog/data_listener.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func NewSockDataListener(sockPath string, rPool *breader.Pool, writer io.Writer,
2525
}
2626

2727
func (l *SockDataListener) handleConnection(conn net.Conn) {
28-
defer conn.Close()
28+
defer func() { _ = conn.Close() }()
2929

3030
reader := l.rPool.Get(conn)
3131
defer l.rPool.Put(reader)

0 commit comments

Comments
 (0)