summaryrefslogtreecommitdiff
path: root/internal/server.go
diff options
context:
space:
mode:
authortjpcc <tjp@ctrl-c.club>2023-09-23 13:18:49 -0600
committertjpcc <tjp@ctrl-c.club>2023-09-23 13:18:49 -0600
commit09c482d5016cfc7b628058893a1644fdf5fa699f (patch)
tree74a122ce8a96bd512eb5c14d674e30e8cb7e66fe /internal/server.go
parent73dfeb428a2f1ca2d35ddbaf89bd5fd3f0d85145 (diff)
nit style fix
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)
}()
}