Browse Source

Maintenance: Update dependency rubocop-performance to v1.16.0

renovatebot 2 years ago
parent
commit
d99e09bd5e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      Gemfile.lock
  2. 1 1
      lib/twitter_sync.rb

+ 1 - 1
Gemfile.lock

@@ -490,7 +490,7 @@ GEM
       activesupport
       rubocop
       rubocop-rspec
-    rubocop-performance (1.15.2)
+    rubocop-performance (1.16.0)
       rubocop (>= 1.7.0, < 2.0)
       rubocop-ast (>= 0.4.0)
     rubocop-rails (2.17.4)

+ 1 - 1
lib/twitter_sync.rb

@@ -947,7 +947,7 @@ register a new webhooks at twitter
       response = Twitter::REST::Request.new(@client, :post, "/1.1/account_activity/all/#{env_name}/webhooks.json", options).perform
     rescue => e
       message = "Unable to register webhook: #{e.message}"
-      if %r{http://}.match?(webhook_url)
+      if webhook_url.include?('http://')
         message += ' Only https webhooks possible to register.'
       elsif webhooks.count.positive?
         message += " Already #{webhooks.count} webhooks registered. Maybe you need to delete one first."