Skip to content

Commit

Permalink
cdp: remove useless parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
krichprollsch committed Jan 8, 2025
1 parent 7829bdb commit d78e8a7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cdp/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,6 @@ fn closeTarget(
return "";
}

// noop
fn sendMessageToTarget(
alloc: std.mem.Allocator,
msg: *IncomingMessage,
Expand All @@ -464,19 +463,19 @@ fn sendMessageToTarget(

// receivedMessageFromTarget event
const ReceivedMessageFromTarget = struct {
sessionId: []const u8,
message: []const u8,
sessionId: []const u8,
};
try cdp.sendEvent(
alloc,
ctx,
"Target.receivedMessageFromTarget",
ReceivedMessageFromTarget,
.{
.sessionId = input.params.sessionId,
.message = res,
.sessionId = input.params.sessionId,
},
input.params.sessionId,
null,
);

return "";
Expand Down

0 comments on commit d78e8a7

Please sign in to comment.