Skip to content

Commit

Permalink
Shaved a few bytes off by removing a ternary. (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
qodesmith authored and maxbeatty committed Aug 25, 2017
1 parent bf06a9c commit 40e9efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 40e9efc

Please sign in to comment.