Skip to content

Commit

Permalink
Add nolint for server start (#443)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebrandon1 authored Nov 15, 2024
1 parent daeb41d commit 483196f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,11 @@ func NewServer(listenAddr string, db *storage.MySQLStorage, objectStore *storage
}
}

func (s *Server) Start() error {
func (s *Server) Start() {
logrus.Info("Starting server")
http.HandleFunc("/", s.handler)
return s.server.ListenAndServe()
//nolint:errcheck
s.server.ListenAndServe()
}

func (s *Server) handler(w http.ResponseWriter, r *http.Request) {
Expand Down

0 comments on commit 483196f

Please sign in to comment.