From 0bedc064582d004691ff3054fecd8e3d5d75e161 Mon Sep 17 00:00:00 2001 From: ispiroglu Date: Thu, 29 Aug 2024 23:58:11 +0300 Subject: [PATCH] fix(linter): make linter happy --- modules/newrelic/module.go | 4 ++-- modules/newrelic/orm/plugin.go | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/newrelic/module.go b/modules/newrelic/module.go index c2d4683..7235f8e 100644 --- a/modules/newrelic/module.go +++ b/modules/newrelic/module.go @@ -40,7 +40,7 @@ func newNr(cfg *config.Config, opts *options) (*newrelic.Application, error) { return newrelic.NewApplication(append(opts.nrOptions, newrelic.ConfigEnabled(false))...) } - o := append( + opts.nrOptions = append( opts.nrOptions, newrelic.ConfigEnabled(true), newrelic.ConfigAppName(nrcfg.GetString(keyAppName)), @@ -48,7 +48,7 @@ func newNr(cfg *config.Config, opts *options) (*newrelic.Application, error) { newrelic.ConfigAppLogEnabled(nrcfg.GetBool(keyAppLogEnabled)), ) - return newrelic.NewApplication(o...) + return newrelic.NewApplication(opts.nrOptions...) } func setDefaultConfigs(cfg *config.Config) { diff --git a/modules/newrelic/orm/plugin.go b/modules/newrelic/orm/plugin.go index 116ab38..e687552 100644 --- a/modules/newrelic/orm/plugin.go +++ b/modules/newrelic/orm/plugin.go @@ -85,7 +85,6 @@ func (p *gormPlugin) after() gormHookFunc { } defer seg.End() - } }