Skip to content

Commit

Permalink
hideVerifications has early return to clarify when not to hide
Browse files Browse the repository at this point in the history
  • Loading branch information
jewel-andraia committed Apr 5, 2013
1 parent 801a7b6 commit dcdfc4e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions bitcointip.js
Original file line number Diff line number Diff line change
Expand Up @@ -346,9 +346,12 @@ modules['bitcoinTip'] = {
RESUtils.forEachChunked(botComments, 15, 1000, function(botComment, i, array) {
var $this = $(botComment);
var isTarget = $this.find('form:first').hasClass('border');
if ($this.find('.comment').length === 0 && !isTarget) {
$this.find('.expand').eq(2).click();
}
if (isTarget) return;

var hasReplies = $this.find('.comment').length > 0;
if (hasReplies) return;

$this.find('.expand').eq(2).click();
});
},

Expand Down

0 comments on commit dcdfc4e

Please sign in to comment.