Skip to content

Commit

Permalink
Fix #1231 Redundant code path inside an if/else block in App class (#…
Browse files Browse the repository at this point in the history
…1327)

Co-authored-by: Sarah Jiang <sarahjiang@slack-corp.com>
  • Loading branch information
seratch and srajiang authored Feb 23, 2022
1 parent 5ea31af commit b4c8604
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,7 @@ export default class App {
};
} else {
try {
if (source.isEnterpriseInstall) {
authorizeResult = await this.authorize(source as AuthorizeSourceData<true>, bodyArg);
} else {
authorizeResult = await this.authorize(source as AuthorizeSourceData<false>, bodyArg);
}
authorizeResult = await this.authorize(source, bodyArg);
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const e = error as any;
Expand Down

0 comments on commit b4c8604

Please sign in to comment.