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

Treat build_script as optional #24

Merged
merged 2 commits into from
Dec 14, 2024
Merged

Treat build_script as optional #24

merged 2 commits into from
Dec 14, 2024

Conversation

BPScott
Copy link
Member

@BPScott BPScott commented Dec 14, 2024

Fix #23.

We accidentally made build_script required in a combo of c799173 and https://github.com/Shopify/snapit/pull/22/files?w=1 thanks to a misplaced } - it was added at the end of the file rather than at the end of the catch block - thus causing everything to end up inside the if (build_script) block.

This PR puts that } in the right place so that the if (branch) block and below are not nested inside the if (build_script) block.

View this diff with whitespace disabled to see that 99% of this PR is the indentation change due to a bunch of code no longer being inside the if (build_script) block.

@BPScott
Copy link
Member Author

BPScott commented Dec 14, 2024

Testing:


I'm confident in this fix and stuff is broken without it so gonna merge and ask for forgiveness later.

@BPScott BPScott merged commit ce342c8 into main Dec 14, 2024
2 checks passed
@BPScott BPScott deleted the bs-fix branch December 14, 2024 01:19
@alex-page
Copy link
Member

Thank you Ben!

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.

build_script should be optional
2 participants