diff --git a/lib/puppet/functions/extlib/has_module.rb b/lib/puppet/functions/extlib/has_module.rb index f1aac86..f933da3 100644 --- a/lib/puppet/functions/extlib/has_module.rb +++ b/lib/puppet/functions/extlib/has_module.rb @@ -27,7 +27,6 @@ def has_module(module_name) # rubocop:disable Style/PredicateName return false unless File.exist?(metadata_json) metadata = JSON.parse(File.read(metadata_json)) - return true if metadata['name'] == full_module_name - false + metadata['name'] == full_module_name end end