GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — lib: refactor variable declarations · nodejs/node@a7f4d5e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • lib/internal/fs
    • utils.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎lib/internal/fs/utils.js‎

Copy file name to clipboardExpand all lines: lib/internal/fs/utils.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,15 @@ for (const name of Reflect.ownKeys(Dirent.prototype)) {
113113
}
114114

115115
function copyObject(source) {
116-
var target = {};
117-
for (var key in source)
116+
const target = {};
117+
for (const key in source)
118118
target[key] = source[key];
119119
return target;
120120
}
121121

122122
function getDirents(path, [names, types], callback) {
123-
var i;
124-
if (typeof callback == 'function') {
123+
let i;
124+
if (typeof callback === 'function') {
125125
const len = names.length;
126126
let toFinish = 0;
127127
callback = once(callback);

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.