mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Rubocop "fixes"
This commit is contained in:
parent
e6528f7c93
commit
51b9a3a332
12 changed files with 33 additions and 8 deletions
|
|
@ -1,5 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
def existing_symlink(source, destination)
|
||||
return if File.readlink(destination).eql?(source)
|
||||
|
||||
# rubocop:disable Metrics/LineLength
|
||||
if @prompt.yes?("#{destination} currently points to #{File.readlink(destination)}, do you want point it at #{source}?")
|
||||
File.unlink(destination)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue