Use object shorthand for properties
This commit is contained in:
parent
eaa31fa709
commit
6b2003d2d8
1 changed files with 11 additions and 11 deletions
22
headers.js
22
headers.js
|
@ -277,17 +277,17 @@ exports.decode = function (buf, filenameEncoding) {
|
||||||
if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5
|
if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5
|
||||||
|
|
||||||
return {
|
return {
|
||||||
name: name,
|
name,
|
||||||
mode: mode,
|
mode,
|
||||||
uid: uid,
|
uid,
|
||||||
gid: gid,
|
gid,
|
||||||
size: size,
|
size,
|
||||||
mtime: new Date(1000 * mtime),
|
mtime: new Date(1000 * mtime),
|
||||||
type: type,
|
type,
|
||||||
linkname: linkname,
|
linkname,
|
||||||
uname: uname,
|
uname,
|
||||||
gname: gname,
|
gname,
|
||||||
devmajor: devmajor,
|
devmajor,
|
||||||
devminor: devminor
|
devminor
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue