Skip to content

Commit

Permalink
lib: refactor variable declarations
Browse files Browse the repository at this point in the history
PR-URL: #22643
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Daniel Bevenius <[email protected]>
  • Loading branch information
ZYSzys authored and targos committed Sep 20, 2018
1 parent dcce2d6 commit a7f4d5e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/internal/fs/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a7f4d5e

Please sign in to comment.