Fix rubocop nits
This commit is contained in:
parent
274d480ba8
commit
f76c4e236b
|
@ -8,12 +8,15 @@ module SocialHelper::TwitterMethods
|
||||||
original_question_length = question_content.length
|
original_question_length = question_content.length
|
||||||
answer_content = twitter_markdown answer.content
|
answer_content = twitter_markdown answer.content
|
||||||
original_answer_length = answer_content.length
|
original_answer_length = answer_content.length
|
||||||
|
|
||||||
|
unless omit_url
|
||||||
answer_url = answer_url(
|
answer_url = answer_url(
|
||||||
id: answer.id,
|
id: answer.id,
|
||||||
username: answer.user.screen_name,
|
username: answer.user.screen_name,
|
||||||
host: APP_CONFIG['hostname'],
|
host: APP_CONFIG["hostname"],
|
||||||
protocol: (APP_CONFIG['https'] ? :https : :http)
|
protocol: (APP_CONFIG["https"] ? :https : :http),
|
||||||
) unless omit_url
|
)
|
||||||
|
end
|
||||||
|
|
||||||
parsed_tweet = { :valid => false }
|
parsed_tweet = { :valid => false }
|
||||||
tweet_text = ""
|
tweet_text = ""
|
||||||
|
|
Loading…
Reference in New Issue