Skip to content

Commit

Permalink
Merge pull request prontolabs#189 from mknapik/fix_nil_consolidated_c…
Browse files Browse the repository at this point in the history
…omment

Fix nil consolidated comment
  • Loading branch information
mmozuras authored Oct 19, 2016
2 parents ce5f852 + 898458a commit 217266f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pronto/formatter/git_formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def remove_duplicate_comments(old_comments, new_comments)
existing = old_comments[key]
comments = dedupe_comments(existing, comments) if existing

if config.consolidate_comments?
if config.consolidate_comments? && !comments.empty?
comment = consolidate_comments(comments)
memo.push(comment)
else
Expand Down

0 comments on commit 217266f

Please sign in to comment.