fix: nil context

This commit is contained in:
Kevin Franklin Kim 2024-12-04 15:22:14 +01:00
parent 6e009d288b
commit 82fc9d2c50
No known key found for this signature in database

View File

@ -40,8 +40,8 @@ func (w *ServiceEnabler) Name() string {
}
func (w *ServiceEnabler) Start(ctx context.Context) error {
w.watch(w.ctx) //nolint:contextcheck
w.ctx = ctx
w.watch(w.ctx) //nolint:contextcheck
if w.enabled() {
if err := w.enable(w.ctx); err != nil { //nolint:contextcheck
return err