Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14a4e16 commit f95e3f1Copy full SHA for f95e3f1
lib/pathutil.rb
@@ -577,9 +577,6 @@ def to_regexp(guard: true)
577
))
578
end
579
580
- # --
581
- # @todo See if you can speed this up by removing the enum and switching
582
- # to something like start=true,false.
583
# --
584
585
def aggressive_cleanpath
@@ -607,7 +604,7 @@ def aggressive_cleanpath
607
604
608
605
609
606
def conservative_cleanpath
610
- _out = (path = split_path).to_enum.with_index(0).each_with_object([]) do |(part, i), out|
+ _out = (path = split_path).each_with_object([]) do |(part, i), out|
611
next if part == "." || (part == ".." && out.last == "")
612
out.push(
613
part
0 commit comments