mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-08-31 13:44:03 +03:00
Update to the latest golangci-lint
This commit is contained in:
@@ -30,7 +30,7 @@ func (suite *PrometheusTestSuite) Get() (string, error) {
|
||||
return "", err //nolint: wrapcheck
|
||||
}
|
||||
|
||||
defer resp.Body.Close()
|
||||
defer resp.Body.Close() //nolint: errcheck
|
||||
|
||||
data, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
@@ -51,7 +51,7 @@ func (suite *PrometheusTestSuite) SetupTest() {
|
||||
func (suite *PrometheusTestSuite) TearDownTest() {
|
||||
suite.prometheus.Shutdown()
|
||||
suite.NoError(suite.factory.Close())
|
||||
suite.httpListener.Close()
|
||||
suite.httpListener.Close() //nolint: errcheck
|
||||
}
|
||||
|
||||
func (suite *PrometheusTestSuite) TestTelegramPath() {
|
||||
|
||||
@@ -100,8 +100,8 @@ func (suite *StatsdTestSuite) SetupTest() {
|
||||
|
||||
func (suite *StatsdTestSuite) TearDownTest() {
|
||||
suite.statsd.Shutdown()
|
||||
suite.factory.Close()
|
||||
suite.statsdServer.Close()
|
||||
suite.factory.Close() //nolint: errcheck
|
||||
suite.statsdServer.Close() //nolint: errcheck
|
||||
}
|
||||
|
||||
func (suite *StatsdTestSuite) TestTelegramPath() {
|
||||
|
||||
Reference in New Issue
Block a user