remove nolint

This commit is contained in:
Gustavo Maronato 2023-08-18 14:08:11 -03:00
parent d17b3a0684
commit 1f078f2682
Signed by: maronato
SSH Key Fingerprint: SHA256:2Gw7kwMz/As+2UkR1qQ/qYYhn+WNh3FGv6ozhoRrLcs
3 changed files with 3 additions and 3 deletions

View File

@ -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,
)

View File

@ -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

View File

@ -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(),
)
})