lib/danger/request_sources/vsts.rb in danger-9.4.3 vs lib/danger/request_sources/vsts.rb in danger-9.5.0

- old
+ new

@@ -137,10 +137,10 @@ # If no comment was updated, post a new one post_new_comment(new_comment) unless comment_updated end def submit_inline_comments!(warnings: [], errors: [], messages: [], markdowns: [], previous_violations: [], danger_id: "danger") - # Avoid doing any fetchs if there's no inline comments + # Avoid doing any fetches if there's no inline comments return {} if (warnings + errors + messages + markdowns).select(&:inline?).empty? pr_threads = @api.fetch_last_comments danger_threads = pr_threads.select do |thread| comment = thread[:comments].first