Skip to content

Commit ca80360

Browse files
committed
Use portable collection paths in cleaner
1 parent 5de6ecd commit ca80360

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

lib/rbs/collection/cleaner.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@ def initialize(lockfile_path:)
1111

1212
def clean
1313
lock.repo_path.glob('*/*') do |dir|
14-
*_, gem_name, version = dir.to_s.split('/')
15-
gem_name or raise
16-
version or raise
14+
gem_name = dir.parent.basename.to_s
15+
version = dir.basename.to_s
1716
next if needed? gem_name, version
1817

1918
case

0 commit comments

Comments
 (0)