Skip to content

Commit

Permalink
Remove language group recursion (#5987)
Browse files Browse the repository at this point in the history
Remove recursion
  • Loading branch information
lildude authored Jul 22, 2022
1 parent 5949263 commit 1f307eb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/linguist/language.rb
Original file line number Diff line number Diff line change
Expand Up @@ -291,12 +291,11 @@ def initialize(attributes = {})

# If group name is set, save the name so we can lazy load it later
if attributes[:group_name]
@group = nil
@group_name = attributes[:group_name]

# Otherwise we can set it to self now
else
@group = self
@group_name = self.name
end
end

Expand Down

0 comments on commit 1f307eb

Please # to comment.