1
0
Fork 0
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:
Kazuhiro NISHIYAMA 2019-05-08 11:14:21 +09:00
parent efda52ba62
commit d56b0cb554
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

View file

@ -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