Skip to content

Commit f36636e

Browse files
committed
refactor(configuration): use node[attr] in node_missing_parameters?
node is a Hash, so node.send(:[], attr) and node[attr] behave the same.
1 parent 0e233cc commit f36636e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎lib/typesense/configuration.rb‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def validate!(options = {})
4141
private
4242

4343
def node_missing_parameters?(node)
44-
%i[protocol host port].any? { |attr| node.send(:[], attr).nil? }
44+
%i[protocol host port].any? { |attr| node[attr].nil? }
4545
end
4646

4747
def validate_keep_alive_options!(options)

0 commit comments

Comments
 (0)