Skip to content

Commit

Permalink
Fix rubocop nits
Browse files Browse the repository at this point in the history
  • Loading branch information
pixeldesu committed Oct 18, 2023
1 parent 274d480 commit f76c4e2
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions app/helpers/social_helper/twitter_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,15 @@ def prepare_tweet(answer, post_tag = nil, omit_url = false)
original_question_length = question_content.length
answer_content = twitter_markdown answer.content
original_answer_length = answer_content.length
answer_url = answer_url(
id: answer.id,
username: answer.user.screen_name,
host: APP_CONFIG['hostname'],
protocol: (APP_CONFIG['https'] ? :https : :http)
) unless omit_url

unless omit_url
answer_url = answer_url(
id: answer.id,
username: answer.user.screen_name,
host: APP_CONFIG["hostname"],
protocol: (APP_CONFIG["https"] ? :https : :http),
)
end

parsed_tweet = { :valid => false }
tweet_text = ""
Expand Down

0 comments on commit f76c4e2

Please sign in to comment.