use the proper variable names o_O
This commit is contained in:
parent
f7f082f46c
commit
c763c7e402
1 changed files with 2 additions and 2 deletions
|
@ -35,8 +35,8 @@ module Gitlab
|
|||
|
||||
def lexer
|
||||
@lexer ||= custom_language || begin
|
||||
Rouge::Lexer.guess(filename: blob_name, source: blob_content).new
|
||||
rescue Rouge::Lexer::AmbiguousGuess => e
|
||||
Rouge::Lexer.guess(filename: @blob_name, source: @blob_content).new
|
||||
rescue Rouge::Guesser::Ambiguous => e
|
||||
e.alternatives.sort_by(&:tag).first
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue