From 1e439167d76d0f8d5fb7631405ee796110107287 Mon Sep 17 00:00:00 2001 From: Mayhem Date: Sat, 10 Aug 2013 15:46:48 +0200 Subject: [PATCH] Shorter QuoteYou code. Not sure why I had written it that way. --- src/Quotelinks/QuoteYou.coffee | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Quotelinks/QuoteYou.coffee b/src/Quotelinks/QuoteYou.coffee index 3013abd03..11e4763dc 100644 --- a/src/Quotelinks/QuoteYou.coffee +++ b/src/Quotelinks/QuoteYou.coffee @@ -10,11 +10,6 @@ QuoteYou = node: -> # Stop there if it's a clone. return if @isClone - # Stop there if there's no quotes in that post. - return unless (quotes = @quotes).length - {quotelinks} = @nodes - - for quotelink in quotelinks - if QR.db.get Get.postDataFromLink quotelink - $.add quotelink, $.tn QuoteYou.text + for quotelink in quotelinks when QR.db.get Get.postDataFromLink quotelink + $.add quotelink, $.tn QuoteYou.text return