From 40e9efcdc5495966d46540fefe786e8d2425b4b1 Mon Sep 17 00:00:00 2001 From: Aaron Cordova Date: Fri, 25 Aug 2017 19:21:19 -0400 Subject: [PATCH] Shaved a few bytes off by removing a ternary. (#222) --- lib/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index 1b7c5b0f..ef74a7bc 100644 --- a/lib/main.js +++ b/lib/main.js @@ -19,7 +19,7 @@ function parse (src) { var key = keyValueArr[1] // default undefined or missing values to empty string - var value = keyValueArr[2] ? keyValueArr[2] : '' + var value = keyValueArr[2] || '' // expand newlines in quoted values var len = value ? value.length : 0