remove nolint
This commit is contained in:
parent
d17b3a0684
commit
1f078f2682
|
@ -56,7 +56,7 @@ func exec(ctx context.Context, cfg *config.Config) error {
|
|||
defer resp.Body.Close()
|
||||
|
||||
if resp.StatusCode != http.StatusOK {
|
||||
return fmt.Errorf( //nolint:goerr113 // We don't need to wrap this error
|
||||
return fmt.Errorf(
|
||||
"healthcheck endpoint returned status code %d",
|
||||
resp.StatusCode,
|
||||
)
|
||||
|
|
|
@ -92,7 +92,7 @@ func (s *Server) Start(ctx context.Context) error {
|
|||
return fmt.Errorf("error starting the server: %w", err)
|
||||
}
|
||||
|
||||
return cmd.Wait() //nolint:wrapcheck // We'll wrap the error when eg.Wait returns
|
||||
return cmd.Wait()
|
||||
})
|
||||
eg.Go(func() error {
|
||||
// Wait for the context to be done
|
||||
|
|
|
@ -63,7 +63,7 @@ func (s *Server) ListenAndServe(ctx context.Context) error {
|
|||
// Wait for the context to be done
|
||||
<-egCtx.Done()
|
||||
|
||||
return s.srv.Shutdown( //nolint:contextcheck // Background allows the server to shutdown gracefully
|
||||
return s.srv.Shutdown(
|
||||
context.Background(),
|
||||
)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user