Skip to content

Commit 41d7e07

Browse files
fix: linter
1 parent 2b57ac4 commit 41d7e07

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

enterprise/coderd/prebuilds/reconcile.go

+2
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,8 @@ func (c *StoreReconciler) Stop(ctx context.Context, cause error) {
107107
select {
108108
// Give up waiting for control loop to exit.
109109
case <-ctx.Done():
110+
// nolint:gocritic // it's okay to use slog.F() for an error in this case
111+
// because we want to differentiate two different types of errors: ctx.Err() and context.Cause()
110112
c.logger.Error(context.Background(), "reconciler stop exited prematurely", slog.Error(ctx.Err()), slog.F("cause", context.Cause(ctx)))
111113
// Wait for the control loop to exit.
112114
case <-c.done:

0 commit comments

Comments
 (0)