Skip to content

Commit

Permalink
Use start_with?(quoted) instead of [0] == char literal
Browse files Browse the repository at this point in the history
  • Loading branch information
znz committed May 8, 2019
1 parent efda52b commit d56b0cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d56b0cb

Please sign in to comment.