Skip to content

Commit

Permalink
Fix #1027 by removing unnecessary lines of code in ExpressReceiver (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
seratch authored Aug 24, 2021
1 parent f90a306 commit 02d601d
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 02d601d

Please sign in to comment.