From c12924a72a4296b0a6d92a2d25c8d2f412277aad Mon Sep 17 00:00:00 2001 From: Nicolas Rodriguez Date: Wed, 25 Sep 2024 16:12:49 +0200 Subject: [PATCH] Coding style: fix Lint/ParenthesesAsGroupedExpression offense --- lib/netbox_client_ruby/api/ipam/ip_address.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netbox_client_ruby/api/ipam/ip_address.rb b/lib/netbox_client_ruby/api/ipam/ip_address.rb index 152115c..4437ec4 100644 --- a/lib/netbox_client_ruby/api/ipam/ip_address.rb +++ b/lib/netbox_client_ruby/api/ipam/ip_address.rb @@ -38,7 +38,7 @@ def interface return nil unless interface_data - if interface_data.key? ('virtual_machine') + if interface_data.key?('virtual_machine') Virtualization::Interface.new interface_data['id'] else DCIM::Interface.new interface_data['id']