From bb927c4bdd93e085ed2f8838b4d6a1fd1a842305 Mon Sep 17 00:00:00 2001 From: Josh Cooper Date: Tue, 10 Jul 2018 00:04:40 -0700 Subject: Cleanup case statement Not necessary to initialize to nil, because the else clause will initialize. --- lib/puppet/provider/host/parsed.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/puppet/provider/host') diff --git a/lib/puppet/provider/host/parsed.rb b/lib/puppet/provider/host/parsed.rb index 64e6c60..1f82237 100644 --- a/lib/puppet/provider/host/parsed.rb +++ b/lib/puppet/provider/host/parsed.rb @@ -1,8 +1,8 @@ require 'puppet/provider/parsedfile' -hosts = nil case Facter.value(:osfamily) -when 'Solaris' then hosts = '/etc/inet/hosts' +when 'Solaris' + hosts = '/etc/inet/hosts' when 'windows' require 'win32/resolv' hosts = Win32::Resolv.get_hosts_path -- cgit v1.2.3