Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
Signed-off-by: Maia Iyer <maia.raj.iyer@gmail.com>
  • Loading branch information
maia-iyer committed Jul 13, 2023
1 parent 5ecc383 commit 3e72200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tornjak-backend/api/agent/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -636,14 +636,14 @@ func (s *Server) HandleRequests() {

if serverConfig.HTTPSConfig.ListenPort == 0 {
// Fail because this is required field in this section
err = fmt.Errorf("HTTPS Config error: no port configured. Starting insecure HTTP connection at %s...", serverConfig.HTTPConfig.ListenPort)
err = fmt.Errorf("HTTPS Config error: no port configured. Starting insecure HTTP connection at %d...", serverConfig.HTTPConfig.ListenPort)
errChannel <- err
httpHandler = s.GetRouter()
canStartHTTPS = false
} else {
tlsConfig, err = httpsConfig.Parse()
if err != nil {
err = fmt.Errorf("failed parsing HTTPS config: %w. Starting insecure HTTP connection at %s...", err, serverConfig.HTTPConfig.ListenPort)
err = fmt.Errorf("failed parsing HTTPS config: %w. Starting insecure HTTP connection at %d...", err, serverConfig.HTTPConfig.ListenPort)
errChannel <- err
httpHandler = s.GetRouter()
canStartHTTPS = false
Expand Down

0 comments on commit 3e72200

Please sign in to comment.