File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class ApplicationErrorExtension extends Error {
4545 }
4646
4747 toJSON ( ) {
48- let map = { } ;
48+ const map = { } ;
4949 Object . getOwnPropertyNames ( this ) . forEach ( key => {
5050 map [ key ] = this [ key ] ;
5151 } ) ;
@@ -64,7 +64,7 @@ module.exports.ApplicationError = ApplicationError;
6464/* eslint-disable no-extend-native */
6565Error . create = function ( errorObject , code ) {
6666 if ( ! ( this instanceof Error ) ) {
67- let error = new Error ( ) . create ( errorObject , code ) ;
67+ const error = new Error ( ) . create ( errorObject , code ) ;
6868 if ( typeof Error . captureStackTrace !== 'undefined' ) {
6969 Error . captureStackTrace ( error , Error . create ) ;
7070 }
@@ -81,7 +81,7 @@ Error.prototype.toString = function() {
8181} ;
8282Error . prototype . inspect = Error . prototype . toString ;
8383Error . prototype . toJSON = function ( ) {
84- let map = { } ;
84+ const map = { } ;
8585 Object . getOwnPropertyNames ( this ) . forEach ( key => {
8686 map [ key ] = this [ key ] ;
8787 } ) ;
You can’t perform that action at this time.
0 commit comments