From 6427913c4b81572b918a72679385fbdbf8de5fd7 Mon Sep 17 00:00:00 2001 From: Isaac Cambron Date: Mon, 8 Apr 2013 00:49:57 -0400 Subject: [PATCH] terser normalizeUnits --- moment.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/moment.js b/moment.js index 81a91da57..2406c43ac 100644 --- a/moment.js +++ b/moment.js @@ -341,10 +341,7 @@ } function normalizeUnits(units) { - if (units) { - return unitAliases[units] || units.toLowerCase().replace(/(.)s$/, '$1'); - } - return units; + return units ? unitAliases[units] || units.toLowerCase().replace(/(.)s$/, '$1') : units; } -- 2.47.2