Skip to content

Commit

Permalink
Rubocop: Match
Browse files Browse the repository at this point in the history
  • Loading branch information
CloCkWeRX committed Jan 10, 2017
1 parent 189dad9 commit a894f7e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
6 changes: 0 additions & 6 deletions .rubocop_todo.yml
Expand Up @@ -136,12 +136,6 @@ Metrics/ModuleLength:
Metrics/PerceivedComplexity:
Max: 15

# Offense count: 1
# Cop supports --auto-correct.
Performance/RedundantMatch:
Exclude:
- 'app/helpers/application_helper.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect.
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Expand Up @@ -258,7 +258,7 @@ def web_presence_icons(person)
if site == :skype
url = "callto:" << url
else
url = "http://" << url unless url.match(/^https?:\/\//)
url = "http://" << url unless url =~ /^https?:\/\//
end
link_to(image_tag("#{site}.gif", size: "15x15"), h(url), "data-popup": true, title: t(:open_in_window, h(url)))
end
Expand Down

0 comments on commit a894f7e

Please sign in to comment.