We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcce2d6 commit a7f4d5eCopy full SHA for a7f4d5e
lib/internal/fs/utils.js
@@ -113,15 +113,15 @@ for (const name of Reflect.ownKeys(Dirent.prototype)) {
113
}
114
115
function copyObject(source) {
116
- var target = {};
117
- for (var key in source)
+ const target = {};
+ for (const key in source)
118
target[key] = source[key];
119
return target;
120
121
122
function getDirents(path, [names, types], callback) {
123
- var i;
124
- if (typeof callback == 'function') {
+ let i;
+ if (typeof callback === 'function') {
125
const len = names.length;
126
let toFinish = 0;
127
callback = once(callback);
0 commit comments