Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(scope): Remove apparently unnecessary if #3298

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

szokeasaurusrex
Copy link
Member

The removed if statement is identical to the if statement immediately before. It does not seem that the code before the second if can modify transaction.sampled, so it should be safe to combine the two if blocks into a single block under the first if statement.

The removed `if` statement is identical to the `if` statement immediately before. It does not seem that the code before the second `if` can modify `transaction.sampled`, so it should be safe to combine the two `if` blocks into a single block under the first `if` statement.
@szokeasaurusrex szokeasaurusrex merged commit 76c9c76 into master Jul 17, 2024
123 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/remove-unnecessary-if branch July 17, 2024 08:05
arjennienhuis pushed a commit to arjennienhuis/sentry-python that referenced this pull request Sep 30, 2024
The removed `if` statement is identical to the `if` statement immediately before. It does not seem that the code before the second `if` can modify `transaction.sampled`, so it should be safe to combine the two `if` blocks into a single block under the first `if` statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants