Skip to content

Commit

Permalink
Add missing break at car boxes search
Browse files Browse the repository at this point in the history
  • Loading branch information
BGMP committed Jan 15, 2023
1 parent 56c76a9 commit 336bcb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ task :carboxes do
carbox_path = ''
known_carbox_files = %w[carbox256.bmp additional/carbox256.bmp carbox.bmp box.bmp]
known_carbox_files.each do |kcf|
carbox_path = "cars/#{f}/#{kcf}" if File.exist?("cars/#{f}/#{kcf}")
(carbox_path = "cars/#{f}/#{kcf}") and break if File.exist?("cars/#{f}/#{kcf}")
end

car_rating = nil
Expand Down

0 comments on commit 336bcb1

Please sign in to comment.