Rubocop redundant return fix

This commit is contained in:
Penar Musaraj 2019-11-14 15:06:49 -05:00
parent ec4f0089f1
commit 96abbd9c19

View File

@ -16,7 +16,7 @@ module TopicAnswerMixin
def can_have_answer def can_have_answer
return true if SiteSetting.allow_solved_on_all_topics return true if SiteSetting.allow_solved_on_all_topics
return false if object.closed || object.archived 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 end
def include_can_have_answer? def include_can_have_answer?