From 1640ab5109624e5bb70af0031e4289537f2dd4e1 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sun, 14 Jul 2013 23:13:40 +0200 Subject: [PATCH] No need to allocate data to see if it's truthy in Post::parseComment. --- src/General/Post.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/General/Post.coffee b/src/General/Post.coffee index 23a0dac0c..e78c6ac4f 100644 --- a/src/General/Post.coffee +++ b/src/General/Post.coffee @@ -72,7 +72,7 @@ class Post # XPathResult.ORDERED_NODE_SNAPSHOT_TYPE === 7 nodes = d.evaluate './/br|.//text()', bq, null, 7, null for i in [0...nodes.snapshotLength] - text.push if data = nodes.snapshotItem(i).data then data else '\n' + text.push nodes.snapshotItem(i).data or '\n' @info.comment = text.join('').trim().replace /\s+$/gm, '' parseQuotes: ->