Skip to content

Commit

Permalink
Fix slackapi#1027 by removing unnecessary lines of code in ExpressRec…
Browse files Browse the repository at this point in the history
…eiver
  • Loading branch information
seratch committed Aug 24, 2021
1 parent 0ad0e89 commit 834a616
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/receivers/ExpressReceiver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,13 +89,6 @@ export default class ExpressReceiver implements Receiver {
this.logger.setLevel(logLevel);
}

if (typeof logger !== 'undefined') {
this.logger = logger;
} else {
this.logger = new ConsoleLogger();
this.logger.setLevel(logLevel);
}

const expressMiddleware: RequestHandler[] = [
verifySignatureAndParseRawBody(this.logger, signingSecret),
respondToSslCheck,
Expand Down

0 comments on commit 834a616

Please sign in to comment.