mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
remove unneeded code
``` irb(main):001:0> def test; if false; puts "hi"; end; end => :test irb(main):002:0> test => nil ```
This commit is contained in:
parent
598ac69773
commit
966d3c8437
@ -484,8 +484,6 @@ class TopicView
|
||||
def current_post_number
|
||||
if highest_post_number.present?
|
||||
post_number > highest_post_number ? highest_post_number : post_number
|
||||
else
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user