mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08: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