mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-25 20:44:46 -07:00
Disallow redundant typecasts. (#15030)
This commit is contained in:
committed by
GitHub
parent
fcc3b2b5ec
commit
942bcfc61e
@@ -33,12 +33,12 @@ export class MockMessageBus {
|
||||
|
||||
// Capture hook-specific messages
|
||||
if (message.type === MessageBusType.HOOK_EXECUTION_REQUEST) {
|
||||
this.hookRequests.push(message as HookExecutionRequest);
|
||||
this.hookRequests.push(message);
|
||||
|
||||
// Auto-respond with success for testing
|
||||
const response: HookExecutionResponse = {
|
||||
type: MessageBusType.HOOK_EXECUTION_RESPONSE,
|
||||
correlationId: (message as HookExecutionRequest).correlationId,
|
||||
correlationId: message.correlationId,
|
||||
success: true,
|
||||
output: {
|
||||
decision: 'allow',
|
||||
|
||||
Reference in New Issue
Block a user