From aae4d8ea88cafbd1a40d0c2c4881bc50b7001de7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jimmy=20Wa=CC=88rting?= Date: Tue, 4 Jan 2022 22:49:08 +0100 Subject: [PATCH] var to const --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2f718fe..dc206a4 100644 --- a/index.js +++ b/index.js @@ -17,7 +17,7 @@ const agent = require('./lib/agent.js'); * @api public */ module.exports = function(app) { - var obj = {}; + const obj = {}; if (typeof app === 'function') { app = http.createServer(app); // eslint-disable-line no-param-reassign