rubocop: Ensure there is a space following 'if' when used

This commit is contained in:
Will Binns 2019-01-12 06:27:37 -06:00 committed by Will Binns
parent be1d9eafe5
commit 83e952492e
2 changed files with 1 additions and 7 deletions

View File

@ -6,12 +6,6 @@
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Cop supports --auto-correct.
Layout/SpaceAroundKeyword:
Exclude:
- '_contrib/comparelinks.rb'
# Offense count: 67
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment.

View File

@ -35,7 +35,7 @@ def fetchlinks()
link = link[0].to_s.gsub(/^(https?:\/\/(www\.)?bitcoin\.org)?\//, '/')
next if (link.match(/^#|^http:\/\/www.meetup.com\//))
if(!link.match(/^https?:\/\/|^\/[^\/]|^mailto:/))
if (!link.match(/^https?:\/\/|^\/[^\/]|^mailto:/))
link = File.dirname(file.sub(WORKDIR + '/_site', '')) + '/' + File.basename(link)
end
links[link] = "0"