You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Rubocop Layout/CaseIndentation cop originally flagged
Puppet::Pops::Lookup for inappropriate case indentation within variable
assignments.
However, upon further inspection these two variable assignments were not
appropriate for case expressions, as there was no objects being compared
and multiple comparisons were being made for each condition.
Additionally because of method calls with long names and many arguments,
these variable assignments suffered from readability issues.
This commit refactors variable assignment to use if/elsif expressions
instead of case expressions and reformats the code to meet the 80 character
line length suggested in the Ruby style guide.
0 commit comments