make rubocop happy

make rubocop happy

diff --git a/app/models/user_stat.rb b/app/models/user_stat.rb
index a1b39d5..2aabbdb 100644
--- a/app/models/user_stat.rb
+++ b/app/models/user_stat.rb
@@ -128,12 +128,11 @@ class UserStat < ActiveRecord::Base
 
   # topic_reply_count is a count of posts in other users' topics
   def update_topic_reply_count
-    self.topic_reply_count =
-      Topic
-        .joins("INNER JOIN posts ON topics.id = posts.topic_id AND topics.user_id <> posts.user_id")
-        .where("posts.deleted_at IS NULL AND posts.user_id = ?", self.user_id)
-        .distinct
-        .count
+    self.topic_reply_count = Topic
+      .joins("INNER JOIN posts ON topics.id = posts.topic_id AND topics.user_id <> posts.user_id")
+      .where("posts.deleted_at IS NULL AND posts.user_id = ?", self.user_id)
+      .distinct
+      .count
   end
 
   MAX_TIME_READ_DIFF = 100

GitHub sha: 2ae87a27

@tgxworld still if you like previous format then we have to use Layout/MultilineMethodCallIndentation: EnforcedStyle: indented_relative_to_receiver.

https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Layout/MultilineMethodCallIndentation

@vinothkannans Oops thanks for this. I lost my pre-commit hooks after reinstalling Ubuntu :grin:

3 Likes