diff options
author | Shubhendra Singh Chauhan <withshubh@gmail.com> | 2021-02-01 01:56:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 21:26:09 +0100 |
commit | c8d11b8bdb97a1a2f8aaf5deca5f1c6c7c0d2688 (patch) | |
tree | 3b3552d07969abc85bac41b1ac5ff7fb8e2573a7 /config/initializers/twitter_regex.rb | |
parent | 3efa0c54b6656fba189baab0857e60c0bc4f3c7d (diff) |
Fixed code quality issues (#15541)
* Added .deepsource.toml * Removed bad use of `alias` * Fixed operand order in the binary expression * Prefixed unused method arguments with an underscore * Replaced the old OpenSSL algorithmic constants with the newer strings initializers. * Removed unnecessary UTF-8 encoding comment
Diffstat (limited to 'config/initializers/twitter_regex.rb')
-rw-r--r-- | config/initializers/twitter_regex.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/twitter_regex.rb b/config/initializers/twitter_regex.rb index 7f99a0005..aca85dd43 100644 --- a/config/initializers/twitter_regex.rb +++ b/config/initializers/twitter_regex.rb @@ -75,7 +75,7 @@ module Twitter # XMPP or magnet URIs an empty array will be returned. # # If a block is given then it will be called for each XMPP URI. - def extract_extra_uris_with_indices(text, options = {}) # :yields: uri, start, end + def extract_extra_uris_with_indices(text, _options = {}) # :yields: uri, start, end return [] unless text && text.index(":") urls = [] |