about summary refs log tree commit diff stats
path: root/internal/server/server.go
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 09:14:56 +0200
committerAlan Pearce2024-06-25 09:14:56 +0200
commitbecede4bfead952239b9cf7c8eb9fb96d01534ec (patch)
tree20cf7d880487d89bc7d1d2e09912409e1a8f4489 /internal/server/server.go
parent4f5ca39f582d83ded08a6e1cbf1a195141623b1c (diff)
downloadwebsite-becede4bfead952239b9cf7c8eb9fb96d01534ec.tar.lz
website-becede4bfead952239b9cf7c8eb9fb96d01534ec.tar.zst
website-becede4bfead952239b9cf7c8eb9fb96d01534ec.zip
refactor/format
Diffstat (limited to 'internal/server/server.go')
-rw-r--r--internal/server/server.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/server/server.go b/internal/server/server.go
index b9db417..60b20d2 100644
--- a/internal/server/server.go
+++ b/internal/server/server.go
@@ -173,9 +173,9 @@ func New(runtimeConfig *Config) (*Server, error) {
 func (s *Server) serve(tls bool) error {
 	if tls {
 		return s.serveTLS()
-	} else {
-		return s.serveTCP()
 	}
+
+	return s.serveTCP()
 }
 
 func (s *Server) Start() error {