lib/facter/facts/windows/interfaces.rb in facter-4.5.2 vs lib/facter/facts/windows/interfaces.rb in facter-4.6.0

- old
+ new

@@ -7,10 +7,10 @@ TYPE = :legacy def call_the_resolver fact_value = Facter::Resolvers::Windows::Networking.resolve(:interfaces) - Facter::ResolvedFact.new(FACT_NAME, fact_value ? fact_value.keys.join(',') : nil, :legacy) + Facter::ResolvedFact.new(FACT_NAME, fact_value&.keys&.join(','), :legacy) end end end end