Skip to content

Commit 0762e01

Browse files
authored
refactor: remove redundant variable declarations in for loops (#637)
Signed-off-by: efcking <[email protected]>
1 parent 6fe652b commit 0762e01

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

message/router.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -434,8 +434,6 @@ func (r *Router) RunHandlers(ctx context.Context) error {
434434
r.logger.Info("Running router handlers", watermill.LogFields{"count": len(r.handlers)})
435435

436436
for name, h := range r.handlers {
437-
name := name
438-
h := h
439437

440438
if h.started {
441439
continue

0 commit comments

Comments
 (0)