Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f95e3f1

Browse files
committed
Remove TODO's we've already completed.
1 parent 14a4e16 commit f95e3f1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/pathutil.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,9 +577,6 @@ def to_regexp(guard: true)
577577
))
578578
end
579579

580-
# --
581-
# @todo See if you can speed this up by removing the enum and switching
582-
# to something like start=true,false.
583580
# --
584581

585582
def aggressive_cleanpath
@@ -607,7 +604,7 @@ def aggressive_cleanpath
607604
# --
608605

609606
def conservative_cleanpath
610-
_out = (path = split_path).to_enum.with_index(0).each_with_object([]) do |(part, i), out|
607+
_out = (path = split_path).each_with_object([]) do |(part, i), out|
611608
next if part == "." || (part == ".." && out.last == "")
612609
out.push(
613610
part

0 commit comments

Comments
 (0)