Rename unused parameters to _ to satisfy linter
This commit is contained in:
@@ -42,7 +42,7 @@ func New(lc fx.Lifecycle, params Params) (*Database, error) {
|
||||
|
||||
return s.connect(ctx)
|
||||
},
|
||||
OnStop: func(ctx context.Context) error {
|
||||
OnStop: func(_ context.Context) error {
|
||||
s.log.Info("Database OnStop Hook")
|
||||
if s.db != nil {
|
||||
return s.db.Close()
|
||||
|
||||
Reference in New Issue
Block a user