Fixed unused variable warning on Ruby gencode.

PiperOrigin-RevId: 555460320
pull/13466/head
Protobuf Team Bot 1 year ago committed by Copybara-Service
parent 8ad3bf63a4
commit 09647a17f8
  1. 2
      src/google/protobuf/compiler/ruby/ruby_generated_code_pb.rb
  2. 2
      src/google/protobuf/compiler/ruby/ruby_generated_code_proto2_pb.rb
  3. 2
      src/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy_pb.rb
  4. 2
      src/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_pb.rb
  5. 2
      src/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit_pb.rb
  6. 2
      src/google/protobuf/compiler/ruby/ruby_generator.cc

@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
rescue TypeError => e
rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)

@ -13,7 +13,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
rescue TypeError => e
rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)

@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
rescue TypeError => e
rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)

@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
rescue TypeError => e
rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)

@ -11,7 +11,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
rescue TypeError => e
rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)

@ -288,7 +288,7 @@ pool = Google::Protobuf::DescriptorPool.generated_pool
begin
pool.add_serialized_file(descriptor_data)
rescue TypeError => e
rescue TypeError
# Compatibility code: will be removed in the next major version.
require 'google/protobuf/descriptor_pb'
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)

Loading…
Cancel
Save