-
Notifications
You must be signed in to change notification settings - Fork 399
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
Redundant code path inside an if/else block in App class #1231
Comments
@TEMHITHORPHE Thanks for taking the time to report this! The TypeScript code has a slight difference but it does not make any runtime benefit: https://github.com/slackapi/bolt-js/blob/%40slack/bolt%403.8.1/src/App.ts#L784-L790 Indeed, the lines of code are just redundant. We can simplify the code in future versions. |
Okay, but I sure hope "redundant" is only what it is, cause I had to dig into source when I was getting a funny "slack_bot_authorization_error" on a recent(and first) AWS Lambda deployment days ago, brought the entire project to a standstill, and am currently just starting again from scratch, following the steps from https://slack.dev/bolt-js/deployments/aws-lambda like a baby, in case I missed any steps during my previous deployment. Needless to say that too just hit a snag, because for whatever reason I don't understand, "serverless-offline" is not responding to SLACK 's Event API's challenge, but that's an "issue" for another day. |
…1327) Co-authored-by: Sarah Jiang <[email protected]>
Description
Describe your issue here.
What type of issue is this? (place an
x
in one of the[ ]
)Requirements (place an
x
in each of the[ ]
)Bug Report
Filling out the following details about bugs will help us solve your issue sooner.
Reproducible in:
package version:@slack/[email protected]
node version:14.17.5
OS version(s):Win32
Steps to reproduce:
Expected result:
Take a different code path, i.e. call a different function if ELSE block executed
Actual result:
Attachments:
Logs, screenshots, screencast, sample project, funny gif, etc.
The text was updated successfully, but these errors were encountered: