Skip to content

Commit

Permalink
Fix warning for unused instance variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Judge committed Jan 22, 2021
1 parent 47505bc commit 9b63104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reflect/reflection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.build(subject, constant_name, strict: nil, ancestors: nil)
target = Reflect.get_constant(subject_constant, constant_name, strict: strict, ancestors: ancestors)
return nil if target.nil?

instance = new(subject, target, strict)
new(subject, target, strict)
end

def call(method_name, arg=nil)
Expand Down

0 comments on commit 9b63104

Please sign in to comment.