Skip to content

Commit f34c5e8

Browse files
committed
Fixed linter issues
1 parent 8542471 commit f34c5e8

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

actions/methods.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ func Head(w http.ResponseWriter, req *http.Request, _ httprouter.Params) {
3030
func NotFound(w http.ResponseWriter, req *http.Request) {
3131
txn := newrelic.FromContext(req.Context())
3232
txn.Ignore()
33-
req = newrelic.RequestWithTransactionContext(req, txn) //nolint:contextcheck // false positive
33+
req = newrelic.RequestWithTransactionContext(req, txn)
3434
ReturnErrorResponse(
3535
w, req,
3636
dictionary.GetError(dictionary.ErrorRequestNotFound, req.RequestURI),
@@ -42,7 +42,7 @@ func NotFound(w http.ResponseWriter, req *http.Request) {
4242
func MethodNotAllowed(w http.ResponseWriter, req *http.Request) {
4343
txn := newrelic.FromContext(req.Context())
4444
txn.Ignore()
45-
req = newrelic.RequestWithTransactionContext(req, txn) //nolint:contextcheck // false positive
45+
req = newrelic.RequestWithTransactionContext(req, txn)
4646
ReturnErrorResponse(
4747
w, req,
4848
dictionary.GetError(dictionary.ErrorMethodNotAllowed, req.Method, req.RequestURI),

config/config.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
EnvironmentStaging = "staging"
2929
EnvironmentTest = "test"
3030
HealthRequestPath = "health"
31-
Version = "v0.3.2"
31+
Version = "v0.3.3"
3232
)
3333

3434
// Local variables for configuration

config/services.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (a *AppConfig) LoadServices(ctx context.Context) (*AppServices, error) {
3636
var err error
3737

3838
// Load NewRelic first - used for Application debugging & tracking
39-
if err = a.loadNewRelic(_services); err != nil { //nolint:contextcheck // false positive
39+
if err = a.loadNewRelic(_services); err != nil {
4040
return nil, fmt.Errorf("error with loadNewRelic: " + err.Error())
4141
}
4242

@@ -61,7 +61,7 @@ func (a *AppConfig) LoadTestServices(ctx context.Context) (*AppServices, error)
6161
_services := new(AppServices)
6262

6363
// Load New Relic
64-
err := a.loadNewRelic(_services) //nolint:contextcheck // false positive
64+
err := a.loadNewRelic(_services)
6565
if err != nil {
6666
return nil, err
6767
}
@@ -240,7 +240,7 @@ func (s *AppServices) loadBux(ctx context.Context, appConfig *AppConfig, testMod
240240
if appConfig.TaskManager.Factory == taskmanager.FactoryRedis {
241241
options = append(
242242
options,
243-
bux.WithTaskQUsingRedis( //nolint:contextcheck // false positive
243+
bux.WithTaskQUsingRedis(
244244
config,
245245
&redis.Options{
246246
Addr: strings.Replace(appConfig.Redis.URL, "redis://", "", -1),

0 commit comments

Comments
 (0)