Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(PUP-7650) Remove dead code and unnecessary call to #downcase #5980

Conversation

thallgren
Copy link
Contributor

This commit removes two unnecessary calls to #downcase. One is actually
dead code since the downcased value is never used. The other is redundant
since all resolvers of type names will downcase the name.

Downcasing is either performed by TypedCollection#munge_name (for
defined resources or host classes), Puppet::Type#type (for resource
types), or Puppet::Pops::Loader::TypedName#initialize (for generated
resource types).

This commit removes two unnecessary calls to #downcase. One is actually
dead code since the downcased value is never used. The other is redundant
since all resolvers of type names will downcase the name.

Downcasing is either performed by `TypedCollection#munge_name` (for
defined resources or host classes), `Puppet::Type#type` (for resource
types), or `Puppet::Pops::Loader::TypedName#initialize` (for generated
resource types).
@hlindberg hlindberg merged commit 79a2200 into puppetlabs:master Jun 14, 2017
@thallgren thallgren deleted the issue/pup-7650/lower-upper-case-name-confusion branch June 29, 2017 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants