diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-05-08 11:14:21 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-05-08 11:16:23 +0900 |
commit | d56b0cb554dd75190b1d308e20f3f49f5f12571b (patch) | |
tree | ce851a4a5069b8a2fc0556b4643a8164c9490412 /lib/find.rb | |
parent | efda52ba62361a0262d3775b8210fff85fb42247 (diff) | |
download | ruby-d56b0cb554dd75190b1d308e20f3f49f5f12571b.tar.gz |
Use `start_with?(quoted)` instead of `[0] == char literal`
Diffstat (limited to 'lib/find.rb')
-rw-r--r-- | lib/find.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/find.rb b/lib/find.rb index f97cc1b836..458cb84608 100644 --- a/lib/find.rb +++ b/lib/find.rb @@ -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 |