Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaMoelans committed Jan 13, 2025
1 parent 39d9aa3 commit bfaefe8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/sentry_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,8 +453,11 @@ sentry__should_send_transaction(
sentry_value_t tx_cxt, sentry_sampling_context_t *sampling_ctx)
{
sentry_value_t context_setting = sentry_value_get_by_key(tx_cxt, "sampled");
bool sampled = sentry_value_is_null(context_setting) ? false: sentry_value_is_true(context_setting);
sampling_ctx->parent_sampled = sentry_value_is_null(context_setting) ? NULL: &sampled;
bool sampled = sentry_value_is_null(context_setting)
? false
: sentry_value_is_true(context_setting);
sampling_ctx->parent_sampled
= sentry_value_is_null(context_setting) ? NULL : &sampled;

bool send = false;
SENTRY_WITH_OPTIONS (options) {
Expand Down

0 comments on commit bfaefe8

Please sign in to comment.