mirror of
https://github.com/discourse/discourse-solved.git
synced 2025-07-04 12:52:17 +00:00
Rubocop redundant return fix
This commit is contained in:
parent
ec4f0089f1
commit
96abbd9c19
@ -16,7 +16,7 @@ module TopicAnswerMixin
|
||||
def can_have_answer
|
||||
return true if SiteSetting.allow_solved_on_all_topics
|
||||
return false if object.closed || object.archived
|
||||
return scope.allow_accepted_answers_on_category?(object.category_id)
|
||||
scope.allow_accepted_answers_on_category?(object.category_id)
|
||||
end
|
||||
|
||||
def include_can_have_answer?
|
||||
|
Loading…
x
Reference in New Issue
Block a user