Skip to content

Commit 396aa15

Browse files
hsbtnobu
andcommitted
Update tool/rbinstall.rb
Co-authored-by: Nobuyoshi Nakada <[email protected]>
1 parent 5f16cac commit 396aa15

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tool/rbinstall.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,12 +1146,7 @@ class << (w = [])
11461146
"#{srcdir}/.bundle/gems/#{gem_name}/#{gem_name}.gemspec",
11471147
# original gemspec generated by rubygems
11481148
"#{srcdir}/.bundle/specifications/#{gem_name}.gemspec"
1149-
].each do |gemspec|
1150-
if File.exist?(gemspec)
1151-
path = gemspec
1152-
break
1153-
end
1154-
end
1149+
].find { |gemspec| File.exist?(gemspec) }
11551150
if path.nil?
11561151
skipped[gem_name] = "gemspec not found"
11571152
next

0 commit comments

Comments
 (0)