From 6b2003d2d88f17aef2e16d2ba6fac6c5263140b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sat, 25 Apr 2020 10:20:10 +0100 Subject: [PATCH] Use object shorthand for properties --- headers.js | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/headers.js b/headers.js index 645fa3e..2787cfd 100644 --- a/headers.js +++ b/headers.js @@ -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 } }