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 <anna@addaleax.net>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
  • Loading branch information
ZYSzys authored and danbev committed Sep 20, 2018
1 parent 0623aab commit 44f7c1d
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 44f7c1d

Please sign in to comment.