Skip to content

Commit

Permalink
replace and with &&
Browse files Browse the repository at this point in the history
  • Loading branch information
thde authored Feb 12, 2021
1 parent c5852a3 commit bd395b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/netbox_client_ruby/api/ipam/ip_address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand Down

0 comments on commit bd395b5

Please sign in to comment.