Browse Source

test(alerting): remove unused code to enable gorename

bergquist 9 năm trước cách đây
mục cha
commit
b17298c97c
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      pkg/middleware/middleware_test.go

+ 0 - 2
pkg/middleware/middleware_test.go

@@ -191,9 +191,7 @@ func TestMiddlewareContext(t *testing.T) {
 				}
 			})
 
-			var createUserCmd *m.CreateUserCommand
 			bus.AddHandler("test", func(cmd *m.CreateUserCommand) error {
-				createUserCmd = cmd
 				cmd.Result = m.User{Id: 33}
 				return nil
 			})