Skip to content

Commit

Permalink
Fix warnings during test runs
Browse files Browse the repository at this point in the history
`warning: instance variable @Omitted not initialized`
  • Loading branch information
Earlopain committed Feb 23, 2024
1 parent 2938931 commit 038951e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/drb/drbtest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def setup_service(service_name)
end

def teardown
return if @omitted
return if instance_variable_defined?(:@omitted) && @omitted
@ext.stop_service if defined?(@ext) && @ext
if defined?(@service_name) && @service_name
@drb_service.manager.unregist(@service_name)
Expand Down

0 comments on commit 038951e

Please sign in to comment.