summaryrefslogtreecommitdiff
path: root/lib/internal/fs/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/fs/utils.js')
-rw-r--r--lib/internal/fs/utils.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/internal/fs/utils.js b/lib/internal/fs/utils.js
index 362383be48..5ee94dae29 100644
--- a/lib/internal/fs/utils.js
+++ b/lib/internal/fs/utils.js
@@ -113,15 +113,15 @@ for (const name of Reflect.ownKeys(Dirent.prototype)) {
}
function copyObject(source) {
- var target = {};
- for (var key in source)
+ const target = {};
+ for (const key in source)
target[key] = source[key];
return target;
}
function getDirents(path, [names, types], callback) {
- var i;
- if (typeof callback == 'function') {
+ let i;
+ if (typeof callback === 'function') {
const len = names.length;
let toFinish = 0;
callback = once(callback);