Use object shorthand for properties

This commit is contained in:
Linus Unnebäck 2020-04-25 10:20:10 +01:00 committed by Mathias Buus
parent eaa31fa709
commit 6b2003d2d8

View file

@ -277,17 +277,17 @@ exports.decode = function (buf, filenameEncoding) {
if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5
return {
name: name,
mode: mode,
uid: uid,
gid: gid,
size: size,
name,
mode,
uid,
gid,
size,
mtime: new Date(1000 * mtime),
type: type,
linkname: linkname,
uname: uname,
gname: gname,
devmajor: devmajor,
devminor: devminor
type,
linkname,
uname,
gname,
devmajor,
devminor
}
}