0
0
Fork 0

Quick best practice cleanup of views/helpers (#1546)

* Remove trailing whitespace

* Use query methods instead of explicit .blank? checks
This commit is contained in:
Matt Jankowski 2017-04-12 12:24:18 -04:00 committed by Eugen
parent aa90798386
commit c44a700252
10 changed files with 16 additions and 19 deletions

View file

@ -19,7 +19,7 @@ class Pubsubhubbub::DeliveryWorker
headers['User-Agent'] = 'Mastodon/PubSubHubbub'
headers['Link'] = LinkHeader.new([[api_push_url, [%w(rel hub)]], [account_url(subscription.account, format: :atom), [%w(rel self)]]]).to_s
headers['X-Hub-Signature'] = signature(subscription.secret, payload) unless subscription.secret.blank?
headers['X-Hub-Signature'] = signature(subscription.secret, payload) if subscription.secret?
response = HTTP.timeout(:per_operation, write: 50, connect: 20, read: 50)
.headers(headers)