Skip to content

Commit

Permalink
Merge pull request #178 from ekohl/simpler-syntax
Browse files Browse the repository at this point in the history
Use a shorter syntax to return
  • Loading branch information
ekohl committed Mar 16, 2021
2 parents 6653291 + ce9b1ca commit 1f5a805
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/puppet/functions/extlib/has_module.rb
Expand Up @@ -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

0 comments on commit 1f5a805

Please sign in to comment.