Skip to content

Commit

Permalink
Fix issue with Summary::Loop#var_name
Browse files Browse the repository at this point in the history
  • Loading branch information
tcd committed Jan 7, 2020
1 parent 354c364 commit 6aa5b24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/eddy/summary/loop.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,8 @@ def all_components()
#
# @return [String]
def var_name()
if self.id.start_with?(/\Al_/i)
return self.id
elsif self.id.start_with?(/\Ahl_/i)
return self.id
if self.id.start_with?(/\Ah?l_/i)
return self.id.downcase
else
return "l_#{self.id.downcase}"
end
Expand Down

0 comments on commit 6aa5b24

Please sign in to comment.