use the proper variable names o_O

This commit is contained in:
http://jneen.net/ 2016-07-14 12:21:22 -07:00
parent f7f082f46c
commit c763c7e402

View file

@ -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