mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
chore: remove unnecessary redeclarations in for loops (part 2) (#18593)
This commit is contained in:
@ -1184,7 +1184,6 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
|
||||
var wg sync.WaitGroup
|
||||
for i, provisionerDaemon := range provisionerDaemons {
|
||||
id := i + 1
|
||||
provisionerDaemon := provisionerDaemon
|
||||
wg.Add(1)
|
||||
go func() {
|
||||
defer wg.Done()
|
||||
@ -1662,7 +1661,6 @@ func configureServerTLS(ctx context.Context, logger slog.Logger, tlsMinVersion,
|
||||
|
||||
// Expensively check which certificate matches the client hello.
|
||||
for _, cert := range certs {
|
||||
cert := cert
|
||||
if err := hi.SupportsCertificate(&cert); err == nil {
|
||||
return &cert, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user