Shorten if

This commit is contained in:
Igor Mazur 2018-05-23 11:17:40 +03:00 committed by GitHub
parent 07bbaf9ac5
commit 66b2866373
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ module VagrantPlugins
ethernets = {}.tap do |e_nets|
networks.each do |network|
e_config = {}.tap do |entry|
if network[:type] == :dhcp || network[:type] == "dhcp"
if network[:type].to_s == "dhcp"
entry["dhcp4"] = true
else
mask = network[:netmask]