diff options
author | Josh Cooper <josh@puppet.com> | 2018-07-10 00:04:40 -0700 |
---|---|---|
committer | Josh Cooper <josh@puppet.com> | 2018-07-10 11:03:14 -0700 |
commit | bb927c4bdd93e085ed2f8838b4d6a1fd1a842305 (patch) | |
tree | 4552ae94058bf99bcabb1a9951c049b7fbb4b59f | |
parent | fcc428729b8698b4339fe68f7e8cc83a95d80f9d (diff) | |
download | puppet-hosts_core-bb927c4bdd93e085ed2f8838b4d6a1fd1a842305.tar.gz puppet-hosts_core-bb927c4bdd93e085ed2f8838b4d6a1fd1a842305.tar.bz2 |
Cleanup case statement
Not necessary to initialize to nil, because the else clause will
initialize.
-rw-r--r-- | lib/puppet/provider/host/parsed.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |