mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 19:25:44 +08:00
FIX: Remove return statement from inside block
This commit is contained in:
parent
a790c00691
commit
467c529920
@ -185,8 +185,7 @@ class Plugin::Instance
|
||||
def topic_view_post_custom_fields_whitelister(&block)
|
||||
reloadable_patch do |plugin|
|
||||
::TopicView.add_post_custom_fields_whitelister do |user|
|
||||
return [] unless plugin.enabled?
|
||||
block.call(user)
|
||||
plugin.enabled? ? block.call(user) : []
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user