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

Add a return after the assert #1948

Merged
merged 1 commit into from Feb 15, 2024
Merged

Add a return after the assert #1948

merged 1 commit into from Feb 15, 2024

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented Feb 14, 2024

πŸ“² What

In our beta build (and probably release build, though I didn't check), having an assert inside a guard block with no other return causes the build to not compile. I'm not 100% sure, but I think the assert gets optimized out or at least doesn't crash the binary in these cases.

βœ… Acceptance criteria

  • Our project builds!

@ifosli ifosli self-assigned this Feb 14, 2024
@ifosli ifosli marked this pull request as ready for review February 14, 2024 23:14
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops. Surprised it didn't yell at me in the PR when I did this.

@amy-at-kickstarter
Copy link
Contributor

@ifosli yeah, I believe asserts are stripped as part of our build settings:
Screenshot 2024-02-15 at 10 43 24 AM

@ifosli ifosli merged commit 1704d82 into main Feb 15, 2024
4 checks passed
@ifosli ifosli deleted the paginatorAssert branch February 15, 2024 15:59
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.

None yet

2 participants