diff options
author | tjpcc <tjp@ctrl-c.club> | 2023-09-23 13:18:49 -0600 |
---|---|---|
committer | tjpcc <tjp@ctrl-c.club> | 2023-09-23 13:18:49 -0600 |
commit | 09c482d5016cfc7b628058893a1644fdf5fa699f (patch) | |
tree | 74a122ce8a96bd512eb5c14d674e30e8cb7e66fe | |
parent | 73dfeb428a2f1ca2d35ddbaf89bd5fd3f0d85145 (diff) |
nit style fix
-rw-r--r-- | internal/server.go | 5 |
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) }() } |