Skip to content

Commit

Permalink
- benchmark: remove redundant check from github_events test
Browse files Browse the repository at this point in the history
  • Loading branch information
oknenavin committed Jul 15, 2024
1 parent 99d5675 commit aba0fef
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/src/json/json.node-time.native-github_events.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -575,17 +575,17 @@ namespace cxon {
using namespace test::github_events;
switch (t->type) {
case payload::push_event:
return write_value<Y>(o, static_cast<const payload_push_event*>(t), cx);
return write_value<Y>(o, static_cast<const payload_push_event&>(*t), cx);
case payload::create_event:
return write_value<Y>(o, static_cast<const payload_create_event*>(t), cx);
return write_value<Y>(o, static_cast<const payload_create_event&>(*t), cx);
case payload::fork_event:
return write_value<Y>(o, static_cast<const payload_fork_event*>(t), cx);
return write_value<Y>(o, static_cast<const payload_fork_event&>(*t), cx);
case payload::issue_comment_event:
return write_value<Y>(o, static_cast<const payload_issue_comment_event*>(t), cx);
return write_value<Y>(o, static_cast<const payload_issue_comment_event&>(*t), cx);
case payload::watch_event:
return write_value<Y>(o, static_cast<const payload_watch_event*>(t), cx);
return write_value<Y>(o, static_cast<const payload_watch_event&>(*t), cx);
case payload::gollum_event:
return write_value<Y>(o, static_cast<const payload_gollum_event*>(t), cx);
return write_value<Y>(o, static_cast<const payload_gollum_event&>(*t), cx);
}
return false;
}
Expand Down

0 comments on commit aba0fef

Please sign in to comment.