Skip to content

Commit

Permalink
Merge pull request #5980 from thallgren/issue/pup-7650/lower-upper-ca…
Browse files Browse the repository at this point in the history
…se-name-confusion

(PUP-7650) Remove dead code and unnecessary call to #downcase
  • Loading branch information
hlindberg authored Jun 14, 2017
2 parents a28822e + 42e1dab commit 79a2200
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/puppet/pops/evaluator/runtime3_resource_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,10 @@ def self.create_resources(file, line, scope, virtual, exported, type_name, resou
end

def self.find_resource_type(scope, type_name)
type_name = type_name.to_s.downcase
find_builtin_resource_type(scope, type_name) || find_defined_resource_type(scope, type_name)
end

def self.find_resource_type_or_class(scope, name)
type_name = type_name.to_s.downcase
find_builtin_resource_type(scope, name) || find_defined_resource_type(scope, name) || find_hostclass(scope, name)
end

Expand Down

0 comments on commit 79a2200

Please sign in to comment.