Skip to content
Snippets Groups Projects
Commit c763c7e4 authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

use the proper variable names o_O

parent f7f082f4
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment