Skip to content

Commit

Permalink
fix(linter): make linter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
ispiroglu committed Aug 29, 2024
1 parent 7da95a8 commit 0bedc06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions modules/newrelic/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ 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)),
newrelic.ConfigLicense(nrcfg.GetString(keyAppName)),
newrelic.ConfigAppLogEnabled(nrcfg.GetBool(keyAppLogEnabled)),
)

return newrelic.NewApplication(o...)
return newrelic.NewApplication(opts.nrOptions...)
}

func setDefaultConfigs(cfg *config.Config) {
Expand Down
1 change: 0 additions & 1 deletion modules/newrelic/orm/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func (p *gormPlugin) after() gormHookFunc {
}

defer seg.End()

}
}

Expand Down

0 comments on commit 0bedc06

Please sign in to comment.