Skip to content

Commit

Permalink
Merge pull request #26 from DivergentEuropeans/bugfix/sonar
Browse files Browse the repository at this point in the history
Bug fix for SonarCloud
  • Loading branch information
lchudinov authored May 26, 2020
2 parents 9762a39 + 8370b5c commit ecca727
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logging/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,7 @@ export class Logger implements ZLUX.Logger {
try {
let err:any = new Error();

(Error as any).prepareStackTrace = function (err: Error, stack: any) {
err;
(Error as any).prepareStackTrace = function (_err: Error, stack: any) {
return stack;
};
if (err.stack.shift){
Expand Down

0 comments on commit ecca727

Please sign in to comment.