[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin

b595d3cf0f
This commit is contained in:
Hiroshi SHIBATA 2023-03-16 14:10:30 +09:00
parent a532e9dc37
commit 72d09a568f
16 changed files with 148 additions and 188 deletions

View file

@ -109,15 +109,13 @@ class Gem::Validator
end
good.each do |entry, data|
begin
next unless data # HACK: `gem check -a mkrf`
next unless data # HACK: `gem check -a mkrf`
source = File.join gem_directory, entry["path"]
source = File.join gem_directory, entry["path"]
File.open source, Gem.binary_mode do |f|
unless f.read == data
errors[gem_name][entry["path"]] = "Modified from original"
end
File.open source, Gem.binary_mode do |f|
unless f.read == data
errors[gem_name][entry["path"]] = "Modified from original"
end
end
end