DEV: lint files
This removes explicit return where not needed per rubocop rule
This commit is contained in:
parent
15bc64bbc9
commit
4c0545a827
|
@ -374,7 +374,7 @@ SQL
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
return postInfo
|
postInfo
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -444,7 +444,7 @@ SQL
|
||||||
def can_unaccept_answer
|
def can_unaccept_answer
|
||||||
topic = (topic_view && topic_view.topic) || object.topic
|
topic = (topic_view && topic_view.topic) || object.topic
|
||||||
if topic
|
if topic
|
||||||
return scope.can_accept_answer?(topic) && (post_custom_fields["is_accepted_answer"] == 'true')
|
scope.can_accept_answer?(topic) && (post_custom_fields["is_accepted_answer"] == 'true')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue