@@ -117,7 +117,7 @@ export class Errors {
117117 this . _client = new AuthClient ( this . _config , this . _logger ) ;
118118
119119 if ( this . _config . getReportUnhandledRejections ( ) ) {
120- var that = this ;
120+ const that = this ;
121121 process . on ( 'unhandledRejection' , function ( reason ) {
122122 that . _logger . warn (
123123 'UnhandledPromiseRejectionWarning: ' +
@@ -144,7 +144,7 @@ export class Errors {
144144 * @example
145145 * // Use to create and report errors manually with a high-degree
146146 * // of manual control
147- * var err = errors.event()
147+ * const err = errors.event()
148148 * .setMessage('My error message')
149149 * .setUser('root@nexus');
150150 * errors.report(err, function () {
@@ -155,8 +155,8 @@ export class Errors {
155155
156156 /**
157157 * @example
158- * var hapi = require('hapi');
159- * var server = new hapi.Server();
158+ * const hapi = require('hapi');
159+ * const server = new hapi.Server();
160160 * server.connection({ port: 3000 });
161161 * server.start();
162162 * // AFTER ALL OTHER ROUTE HANDLERS
@@ -166,8 +166,8 @@ export class Errors {
166166
167167 /**
168168 * @example
169- * var express = require('express');
170- * var app = express();
169+ * const express = require('express');
170+ * const app = express();
171171 * // AFTER ALL OTHER ROUTE HANDLERS
172172 * app.use(errors.express);
173173 * app.listen(3000);
@@ -176,17 +176,17 @@ export class Errors {
176176
177177 /**
178178 * @example
179- * var restify = require('restify');
180- * var server = restify.createServer();
179+ * const restify = require('restify');
180+ * const server = restify.createServer();
181181 * // BEFORE ALL OTHER ROUTE HANDLERS
182182 * server.use(errors.restify(server));
183183 */
184184 this . restify = restify ( this . _client , this . _config ) ;
185185
186186 /**
187187 * @example
188- * var koa = require('koa');
189- * var app = koa();
188+ * const koa = require('koa');
189+ * const app = koa();
190190 * // BEFORE ALL OTHER ROUTE HANDLERS HANDLERS
191191 * app.use(errors.koa);
192192 */
0 commit comments