summaryrefslogtreecommitdiff
path: root/internal/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/server.go')
-rw-r--r--internal/server.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/internal/server.go b/internal/server.go
index 1ae594b..a95efc1 100644
--- a/internal/server.go
+++ b/internal/server.go
@@ -81,10 +81,7 @@ func (s *Server) Serve() error {
s.Wg.Add(1)
go func() {
defer s.Wg.Done()
- defer func() {
- _ = conn.Close()
- }()
-
+ defer func() { _ = conn.Close() }()
s.HandleConn(conn)
}()
}