Skip to content

Commit f0ab90f

Browse files
satmanduhsbt
authored andcommitted
simplify
1 parent b3d33fa commit f0ab90f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fileutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1642,7 +1642,7 @@ def install(src, dest, mode: nil, owner: nil, group: nil, preserve: nil,
16421642
st = File.stat(s)
16431643
unless File.exist?(d) and compare_file(s, d)
16441644
remove_file d, true
1645-
if d.to_s.end_with?('/')
1645+
if d.end_with?('/')
16461646
mkdir_p d
16471647
copy_file s, d + File.basename(s)
16481648
else

0 commit comments

Comments
 (0)