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

fix: revert guard removal made in 9cb2744 #54

Merged
merged 1 commit into from
Oct 14, 2024
Merged

Conversation

ndhoule
Copy link
Contributor

@ndhoule ndhoule commented Oct 14, 2024

In 9cb2744, I made a change that removed a guard that was seemingly unnecessary. This guard is a bug, but I misunderstood the code and introduced a new, worse bug.

In 9cb2744, I made a change that removed a guard that was seemingly
unnecessary. This guard is a bug, but I misunderstood the code and
introduced a new, worse bug.
Copy link

netlify bot commented Oct 14, 2024

Deploy Preview for csp-integration ready!

Name Link
🔨 Latest commit bb1c876
🔍 Latest deploy log https://app.netlify.com/sites/csp-integration/deploys/670d8838e691130008973312
😎 Deploy Preview https://deploy-preview-54--csp-integration.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

// FIXME(ndhoule): This is a bug. At one point we added a default value for config, which
// means we can no longer enter this case.
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
if (!config) {
Copy link
Contributor Author

@ndhoule ndhoule Oct 14, 2024

Choose a reason for hiding this comment

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

The bug here is: we default config to {} where it's defined, so this condition is impossible. But I spaced and made the CSP extension always use the default config. 😶

(I have a branch that will fix various issues in the CSP extension and add some tests, so I'll add a regression test for this.)

@ndhoule ndhoule merged commit a6a4c08 into main Oct 14, 2024
5 checks passed
@ndhoule ndhoule deleted the fix/revert-new-bug branch October 14, 2024 23:22
ndhoule added a commit that referenced this pull request Oct 21, 2024
ndhoule added a commit that referenced this pull request Oct 24, 2024
* Revert "fix: revert guard removal made in 9cb2744 (#54)"

This reverts commit a6a4c08.

* Revert "refactor: clean up project setup (#51)"

This reverts commit 34d03a2.

* Revert "feat: migration to SDK v2 (#40)"

This reverts commit 9cb2744.
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