From f95e11cffcc5a97634e9a26ff3535ac86f027b63 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Thu, 19 Oct 2023 23:53:21 +0200 Subject: [PATCH] Fix rubocop nits --- app/helpers/social_helper/twitter_methods.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/social_helper/twitter_methods.rb b/app/helpers/social_helper/twitter_methods.rb index 6c7649ca..61ce366a 100644 --- a/app/helpers/social_helper/twitter_methods.rb +++ b/app/helpers/social_helper/twitter_methods.rb @@ -4,13 +4,13 @@ require "cgi" module SocialHelper::TwitterMethods include MarkdownHelper - + def prepare_tweet(answer, post_tag = nil, omit_url = false) question_content = twitter_markdown answer.question.content.gsub(/@(\w+)/, '\1') original_question_length = question_content.length answer_content = twitter_markdown answer.content original_answer_length = answer_content.length - + unless omit_url answer_url = answer_url( id: answer.id,