From 1b2a8343bdd6efe9b50b3d6864b87808f58e2a43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Sun, 26 Apr 2020 10:47:49 +0100 Subject: [PATCH] Use object shorthand for properties --- humanize-duration.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/humanize-duration.js b/humanize-duration.js index 3d7a4b8..3d802ed 100644 --- a/humanize-duration.js +++ b/humanize-duration.js @@ -600,8 +600,8 @@ // Add the string. pieces.push({ - unitCount: unitCount, - unitName: unitName + unitCount, + unitName }) // Remove what we just figured out.