diff --git a/lib/puppet/provider/package/snap.rb b/lib/puppet/provider/package/snap.rb index c1e24d0..8776546 100644 --- a/lib/puppet/provider/package/snap.rb +++ b/lib/puppet/provider/package/snap.rb @@ -25,11 +25,7 @@ def self.instances def query installed = self.class.instances.find { |it| it.name == @resource['name'] } - if installed - { ensure: installed[:ensure], name: @resource[:name] } - else - nil - end + { ensure: installed[:ensure], name: @resource[:name] } if installed end def install