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

Update signature.ts #1934

Closed

Conversation

thebedroomprogrammer
Copy link

Remove unnecessary check for the secret key as the secret is a required parameter in the function definition.

Remove unnecessary check for secret key.
Copy link

vercel bot commented Jan 22, 2025

@thebedroomprogrammer is attempting to deploy a commit to the Dub Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant
Copy link

CLAassistant commented Jan 22, 2025

CLA assistant check
All committers have signed the CLA.

@devkiran
Copy link
Collaborator

@thebedroomprogrammer May I know why you think it is unnecessary?

@steven-tey steven-tey closed this Feb 1, 2025
@thebedroomprogrammer
Copy link
Author

@thebedroomprogrammer May I know why you think it is unnecessary?

Correct me if I am wrong but isn't the secret an always required parameter in the function which will fail to compile for any function that does not pass the secret ensuring that it is always there. The only time we would need to check whether the secret is present is if someone fails to pass it in the runtime.

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.

4 participants