mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use start_with?(quoted)
instead of [0] == char literal
This commit is contained in:
parent
efda52ba62
commit
d56b0cb554
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@
|
|||
#
|
||||
# Find.find(ENV["HOME"]) do |path|
|
||||
# if FileTest.directory?(path)
|
||||
# if File.basename(path)[0] == ?.
|
||||
# if File.basename(path).start_with?('.')
|
||||
# Find.prune # Don't look any further into this directory.
|
||||
# else
|
||||
# next
|
||||
|
|
Loading…
Reference in a new issue