From 2ff7d6a5bd2a011186306b59584350682d1497a8 Mon Sep 17 00:00:00 2001 From: Chris Roberts Date: Tue, 11 Jan 2022 10:23:08 -0800 Subject: [PATCH] Allow value to be mapped to be nil --- plugins/commands/serve/mappers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/commands/serve/mappers.rb b/plugins/commands/serve/mappers.rb index 8346245e0..9eb81c391 100644 --- a/plugins/commands/serve/mappers.rb +++ b/plugins/commands/serve/mappers.rb @@ -95,7 +95,7 @@ module VagrantPlugins to = DEFAULT_MAPS[value.class] if to.nil? # If the value given is the desired type, just return the value - return value if !value.nil? && !to.nil? && value.is_a?(to) + return value if !to.nil? && value.is_a?(to) logger.debug("starting the value mapping process #{value.class} => #{to.nil? ? 'unknown' : to.inspect}") if value.nil? && to