From bd395b5a8765fb4380e435600369c19f0d8cf50e Mon Sep 17 00:00:00 2001 From: Demian Date: Fri, 12 Feb 2021 15:09:47 +0100 Subject: [PATCH] replace and with && https://stackoverflow.com/questions/1426826/difference-between-and-and-in-ruby --- 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 16cd5ed..e87885b 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') and not interface_data['virtual_machine'].nil? + if interface_data.key? ('virtual_machine') && !interface_data['virtual_machine'].nil? Virtualization::Interface.new interface_data['id'] else DCIM::Interface.new interface_data['id']