Adjustments per RuboCop

This commit is contained in:
Gene Liverman 2020-07-03 15:21:37 -04:00
parent 441d3bf83a
commit 0500063a36
No known key found for this signature in database
GPG key ID: 66D794FE7043CBCA

View file

@ -3,7 +3,7 @@
def existing_symlink(source, destination)
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}?")
File.unlink(destination)
puts "Linking #{destination} to #{source}"
@ -12,7 +12,7 @@ def existing_symlink(source, destination)
else
puts "#{destination} is unchanged"
end
# rubocop:enable Metrics/LineLength
# rubocop:enable Layout/LineLength
end
# rubocop:disable Metrics/MethodLength