mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Apply Rubocop redundant return style
This commit is contained in:
@@ -27,7 +27,7 @@ class Unread
|
||||
|
||||
new_posts = (highest_post_number - @topic_user.highest_seen_post_number)
|
||||
new_posts = 0 if new_posts < 0
|
||||
return new_posts
|
||||
new_posts
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
Reference in New Issue
Block a user