From 4c0545a827b678185d2d8f400aaae4f74c2a5122 Mon Sep 17 00:00:00 2001 From: Sam Saffron Date: Tue, 10 Dec 2019 12:01:54 +1100 Subject: [PATCH] DEV: lint files This removes explicit return where not needed per rubocop rule --- plugin.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin.rb b/plugin.rb index f904b83..5875ba6 100644 --- a/plugin.rb +++ b/plugin.rb @@ -374,7 +374,7 @@ SQL else nil end - return postInfo + postInfo end end @@ -444,7 +444,7 @@ SQL def can_unaccept_answer topic = (topic_view && topic_view.topic) || object.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