mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] util/rubocop -A --only Style/RedundantBegin
b595d3cf0f
This commit is contained in:
parent
a532e9dc37
commit
72d09a568f
16 changed files with 148 additions and 188 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue