Merge pull request #53 from genebean/rubocop

Adjustments per RuboCop
This commit is contained in:
Gene Liverman 2020-07-03 15:46:53 -04:00 committed by GitHub
commit 88bfc2c140
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ os:
rvm: rvm:
- 2.5 - 2.5
- 2.6 - 2.6
- 2.7
before_install: before_install:
- gem update --system - gem update --system

View file

@ -3,7 +3,7 @@
def existing_symlink(source, destination) def existing_symlink(source, destination)
return if File.readlink(destination).eql?(source) return if File.readlink(destination).eql?(source)
# rubocop:disable Metrics/LineLength # rubocop:disable Layout/LineLength
if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?") if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?")
File.unlink(destination) File.unlink(destination)
puts "Linking #{destination} to #{source}" puts "Linking #{destination} to #{source}"
@ -12,7 +12,7 @@ def existing_symlink(source, destination)
else else
puts "#{destination} is unchanged" puts "#{destination} is unchanged"
end end
# rubocop:enable Metrics/LineLength # rubocop:enable Layout/LineLength
end end
# rubocop:disable Metrics/MethodLength # rubocop:disable Metrics/MethodLength