From 0ec51a198dc4d7db7622ebec8fa3792a16f851d6 Mon Sep 17 00:00:00 2001 From: Alvin Valdez <32502043+AlvinValdez@users.noreply.github.com> Date: Tue, 5 Feb 2019 14:38:59 -0500 Subject: [PATCH] Fix for issue-670: Changed var to const (#687) * Changed var to const * Added 'use strict' to top of file * Update stats.js * Update stats.js --- src/stats.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/stats.js b/src/stats.js index 4c850eb..5a8b274 100644 --- a/src/stats.js +++ b/src/stats.js @@ -1,5 +1,7 @@ -var Constants = require('./constants.js'); -var Path = require('./path.js'); +'use strict'; + +const Constants = require('./constants.js'); +const Path = require('./path.js'); // https://github.com/nodejs/node/blob/4f1297f259b09d129ac01afbd4c674263b7ac124/lib/internal/fs/utils.js#L231 function dateFromNumeric(num) {